Private Skin's Problem!
#9

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;
}
Error:
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.
Reply


Messages In This Thread
Private Skin's Problem! - by Santox14 - 17.10.2011, 17:34
Re: Private Skin's Problem! - by Dark_Kostas - 17.10.2011, 18:06
AW: Private Skin's Problem! - by Santox14 - 17.10.2011, 18:09
Re: Private Skin's Problem! - by Dark_Kostas - 17.10.2011, 18:13
Re: Private Skin's Problem! - by SmiT - 17.10.2011, 18:14
AW: Private Skin's Problem! - by Santox14 - 17.10.2011, 18:15
Re: Private Skin's Problem! - by Stigg - 17.10.2011, 18:20
Re: Private Skin's Problem! - by SmiT - 17.10.2011, 18:21
AW: Private Skin's Problem! - by Santox14 - 17.10.2011, 19:52
AW: Private Skin's Problem! - by Santox14 - 17.10.2011, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)