array must be indexed?
#9

You can't return more then 1 value.

pawn Код:
if(PlayerInfo[playerid][WHack] == 1)
    {
        print("Admins Aware");
        PlayerInfo[playerid][WHack] = 2;
        return 1;
    }

    if(PlayerInfo[playerid][WHack] == 2)
    {
        Kick(playerid);
        SendClientMessage(playerid, red, "You been kicked for Weapon hacks, this means you had warning next is ban");
        PlayerInfo[playerid][WHack] = 3;
        return 1;
    }

    if(PlayerInfo[playerid][WHack] == 3)
    {
        Ban(playerid);
        SendClientMessage(playerid, red, "You been banned for Weapn Hacks, This means u been warned and kicked.");
        return 1;
    }
Also, I hope you have a way to link 'playerid' with their IP or name, because I assume once they rejoin from being kicked theyir WHack will be 0.
Reply


Messages In This Thread
array must be indexed? - by willsuckformoney - 21.08.2010, 02:38
Re: array must be indexed? - by [L3th4l] - 21.08.2010, 02:45
Re: array must be indexed? - by willsuckformoney - 21.08.2010, 02:48
Re: array must be indexed? - by Zezombia - 21.08.2010, 03:06
Re: array must be indexed? - by Retardedwolf - 21.08.2010, 03:08
Re: array must be indexed? - by willsuckformoney - 21.08.2010, 03:12
Re: array must be indexed? - by Retardedwolf - 21.08.2010, 03:49
Re: array must be indexed? - by willsuckformoney - 21.08.2010, 04:13
Re: array must be indexed? - by Zezombia - 21.08.2010, 04:19
Re: array must be indexed? - by willsuckformoney - 21.08.2010, 04:22

Forum Jump:


Users browsing this thread: 4 Guest(s)