SA-MP Forums Archive
Ok, so i just need to check if i'm right... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ok, so i just need to check if i'm right... (/showthread.php?tid=465393)



Ok, so i just need to check if i'm right... - sansk - 22.09.2013

So if i use this:
Код:
new Wanted[MAX_PLAYERS][6];
does that mean that i can use something like this later:
Код:
Wanted[playerid][1] or 
if(Wanted[playerid][2] == 1)
{
      //arrest things here..
}



Re: Ok, so i just need to check if i'm right... - Konstantinos - 22.09.2013

You can use 0-5.
pawn Код:
Wanted[playerid][0] = 1;
Wanted[playerid][1] = 0;
Wanted[playerid][2] = 1;
Wanted[playerid][3] = 0;
Wanted[playerid][4] = 1;
Wanted[playerid][5] = 0;

if(Wanted[playerid][2] == 1)
{
    // arest things here..
}