23.08.2009, 18:10
Quote:
Originally Posted by ssǝן‾ʎ
I count 10 characters max there, why do you need an array of size 128 to store 10 characters - what are the other 118 cells for?
|
Код:
new stato[MAX_PLAYERS][10];
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/prigione1", cmdtext, true, 10) == 0) return stato[playerid]="prigione1"; if (strcmp("/prigione2", cmdtext, true, 10) == 0) return stato[playerid]="prigione2"; if (strcmp("/base1", cmdtext, true, 10) == 0) return stato[playerid]="base1"; if (strcmp("/base2", cmdtext, true, 10) == 0) return stato[playerid]="base2"; return 0; }