27.06.2013, 16:48
I understand this...
error 006: must be assigned to an array
in sname[ID] = name; and sstring[ID] = string;
global variable: new sname[MAX_PLAYERS], sstring[MAX_PLAYERS];
error 006: must be assigned to an array
in sname[ID] = name; and sstring[ID] = string;
global variable: new sname[MAX_PLAYERS], sstring[MAX_PLAYERS];
PHP код:
CMD:zinute(playerid,params[])
{
new string[128], ID, name[MAX_PLAYER_NAME];
if(sscanf(params,"uz",ID,string)) return InfoBoxForPlayer(playerid,"~r~/zinute [ID] [Text]");
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
sname[ID] = name;
sstring[ID] = string;
return 1;
}