29.06.2012, 17:26
Hi all. I don't know what happen... When i use any variable, my server crashes... for ex:
when player spawn i set this variable:
i get crache...
I give player admin:
I get message: "* You are admin.", but i get crache..
Can say anybody what happen here with variables?
when player spawn i set this variable:
Код:
PlayerData[ playerid ][ Spawned ] = 1;
I give player admin:
Код:
COMMAND:giveadmin(playerid,params[]) { if(!IsPlayerAdmin(playerid)) { return 1; } new AdminID; if (sscanf(params, "u", AdminID)){SendClientMessage(playerid, COLOR_ORANGE, "* Give player admin /giveadmin [part of name/ID]");return 1;} if( AdminID == INVALID_PLAYER_ID ){SendClientMessage( playerid, COLOR_RED, "* This player do not exist!" );return 1;} PlayerData[AdminID][Admin] = 1; SendClientMessage(AdminID,COLOR_GREEN,"* You are admin."); return 1; }
Can say anybody what happen here with variables?