13.06.2011, 03:57
The Errors
The Code
Код:
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(192) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(195) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(200) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(259) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(310) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(925) : warning 203: symbol is never used: "pName" C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(925) : warning 203: symbol is never used: "string"
Код:
public OnPlayerConnect(playerid)
{
AFKS[playerid] = 0;
}
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName,(playerid,pname,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined the server!",pName);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;

