Resetare variabila globala

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
pigmy
Membru, skill +2
Membru, skill +2
Posts: 594
Joined: 14 Dec 2007, 17:49
Detinator Steam: Da
CS Status: PEACE!
Has thanked: 2 times
Been thanked: 23 times

07 Oct 2012, 23:00

Salut, stiti vreo metoda cum as putea reseta variabila globala care imi stocheaza ceva? Nu e vorba de numere ci de litere.
Am:

Code: Select all

new test[33];
In cod e pus sub forma de:

Code: Select all

test = argument;
Eu cand ezecut comanda el stocheaza si in variabila (toate bune pana aici) dar vreau sa stiu cum eliberez variabila (cum o golesc), sa golesc variabila la sfarsitul comenzii.
* Daca era cu numarere era mai usa, o resetam sub forma unei cifre, adica: 0 (zero).
RoyalServer 2
vim
Programator eXtream
Programator eXtream
Posts: 853
Joined: 29 May 2009, 19:13
Detinator Steam: Da
CS Status: Trag cu praştia !
Reputatie: Fost programator web eXtreamCS
Administrator tehnic
Sysadmin
Location: Bucureşti
Has thanked: 2 times
Been thanked: 342 times

07 Oct 2012, 23:08

Code: Select all

test[0] = EOS
Last edited by compaq on 08 Oct 2012, 14:58, edited 1 time in total.
Reason: Unde EOS = end of string.
I'm not antisocial, I'm just not user friendly.
⎯ retired
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests