help?how i remove this error?
#9

Do what is below, what i mean by do is to follow what is below.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid,classid);
    // Rest of the code...
}

SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0)
    {
            SendClientMessage(playerid, 0xFFFFFFFF, "Skin 0"); // Change this with what you want
    }
        if(classid == 1)
    {
            SendClientMessage(playerid, 0xFFFFFFFF, "Skin 1"); // Change this with what you want
    }
        // Rest of the code...
}


SetTimerEx("KickPlayer",200,false,"d", playerid); // Put this where you want to set the timer

forward KickPlayer(playerid);
public KickPlayer(playerid)
{
    Kick(playerid);
}
Hope it helps you out!
Reply


Messages In This Thread
help?how i remove this error? - by PAF - 14.02.2014, 12:00
Re: help?how i remove this error? - by Brandon_More - 14.02.2014, 12:13
[No subject] - by PAF - 14.02.2014, 12:18
Re: help?how i remove this error? - by MarkenFrank1 - 14.02.2014, 12:46
Re: help?how i remove this error? - by PAF - 14.02.2014, 12:49
Re: help?how i remove this error? - by PAF - 15.02.2014, 05:16
Re: help?how i remove this error? - by ShaneOvSina - 15.02.2014, 05:19
Re: help?how i remove this error? - by PAF - 15.02.2014, 05:26
Re: help?how i remove this error? - by SickAttack - 15.02.2014, 05:42
Re: help?how i remove this error? - by PAF - 15.02.2014, 05:56

Forum Jump:


Users browsing this thread: 1 Guest(s)