16.08.2015, 00:47
Guys help me
Eror:-
warning 219: local variable "playerid" shadows a variable at a preceding level
error code
Eror:-
warning 219: local variable "playerid" shadows a variable at a preceding level
error code
Код:
public OnPlayerConnect(playerid)
{
new playerid; //<==MAIN ERROR LINE
new name [MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid,name, sizeof(name));
format(string, sizeof(string), "%s Has joined the server|_", name);
SendClientMessage(playerid, 0xB8860BAA , "Welcome to the stunt server by ahad aman");
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}

