Errors :/
#9

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(PlayerToKick == playerid)
    {
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "{C14124}%s {BBBBBB}exited the server, so the votekick has been closed automatically.", name);
        SendClientMessageToAll(COLOR_OK, string);
        new Yes = 0, No = 0, PlayerToKick = -1, seconds = 60, IsVoteKickStarted = false;
        TextDrawHideForAll(Background);
        TextDrawHideForAll(VoteKickTitle);
        TextDrawHideForAll(VoteKickName);
        TextDrawHideForAll(VoteKickVote);
        TextDrawSetString(VoteKickVote,"~g~~h~Yes~w~: 0  ~r~No~w~: 0");
        TextDrawHideForAll(VoteKickTime);
    }
}
The other poster forgot to close the brace...
Reply


Messages In This Thread
Errors :/ - by mahmoudalzamalkawy - 08.03.2014, 13:09
Re: Errors :/ - by QuaTTrO - 08.03.2014, 13:11
Re: Errors :/ - by mahmoudalzamalkawy - 08.03.2014, 13:14
Re: Errors :/ - by mahmoudalzamalkawy - 08.03.2014, 13:18
Re: Errors :/ - by mahmoudalzamalkawy - 08.03.2014, 13:25
Re: Errors :/ - by Matess - 08.03.2014, 13:30
Re: Errors :/ - by mahmoudalzamalkawy - 08.03.2014, 13:41
Re: Errors :/ - by Matess - 08.03.2014, 13:54
Re: Errors :/ - by Threshold - 08.03.2014, 15:41
Re: Errors :/ - by mahmoudalzamalkawy - 08.03.2014, 18:32

Forum Jump:


Users browsing this thread: 3 Guest(s)