17.10.2011, 19:52
pawn Код:
public OnPlayerSpawn(playerid)
{
new PlayerName[MAX_PLAYER_NAME];
new GetPlayerName(playerid,PlayerName, MAX_PLAYER_NAME);
if( GetPlayerSkin ( playerid ) == 21 )
{
if( !strcmp ( PlayerName, "[LSB]TheGame" ) )
{
SendClientMessage(playerid,0xFF0055FF, "Allowed to use this skin " );
}
else
{
ForceClassSelection(playerid);
SendClientMessage(playerid,0xFF0055FF,"You are not [LSB]TheGame, choose another Skin!" );
}
}
return true;
}
pawn Код:
C:\Users\Josh\Desktop\Mein Server\gamemodes\Josh.pwn(158) : warning 219: local variable "GetPlayerName" shadows a variable at a preceding level
C:\Users\Josh\Desktop\Mein Server\gamemodes\Josh.pwn(158) : error 001: expected token: ";", but found "("
C:\Users\Josh\Desktop\Mein Server\gamemodes\Josh.pwn(158) : warning 215: expression has no effect
C:\Users\Josh\Desktop\Mein Server\gamemodes\Josh.pwn(158) : warning 203: symbol is never used: "GetPlayerName"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.