Problem with this code
#1

Код:
public OnPlayerRequestSpawn(playerid)
{
new PlayerName[24];
if(GetPlayerSkin(playerid) == 100)
 {
    if(strcmp(PlayerName,"radek",true))
    {
        SendClientMessage(playerid,0x33AA33AA, "-Ident-Hey ;)");
        return 1;
    }
    else
    {
        SendClientMessage(playerid,0x33AA33AA, "-Ident-You can't choose this class.");
        return 0;
    }
}
return 1;
}
How i can make it to work, if i choose this skin, as "radek" it keep saying i cant choose it, and if i go in server with name "tttt" same thing happend, its unselectable by everyone. Can some show me correct code?
Reply


Messages In This Thread
Problem with this code - by RadekB0Y - 15.10.2011, 18:37
Re: Problem with this code - by [MWR]Blood - 15.10.2011, 18:39
Re: Problem with this code - by Josma_cmd - 15.10.2011, 18:40
Re: Problem with this code - by [MWR]Blood - 15.10.2011, 18:43
Re: Problem with this code - by Josma_cmd - 15.10.2011, 18:48
Re: Problem with this code - by RadekB0Y - 15.10.2011, 18:49
Re: Problem with this code - by [MWR]Blood - 15.10.2011, 18:53
Re: Problem with this code - by RadekB0Y - 15.10.2011, 19:07
Re: Problem with this code - by [MWR]Blood - 15.10.2011, 19:08
Re: Problem with this code - by RadekB0Y - 15.10.2011, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)