07.08.2013, 10:02
pawn Код:
if(carid == LSPD[0] && PlayerInfo[playerid][Faction] != 1)
Let's try a little diffrent approach:
pawn Код:
new LSPD[28];
//change to
#define LSPD_CARS (28)
new LSPD[LSPD_CARS];
new ptrLSPD = 0;
pawn Код:
LSPD[0] = AddStaticVehicle(596,1528.7373,-1687.9275,5.6120,89.6197,1,0);
//Change to
ptrLSPD = AddStaticVehicle(596,1528.7373,-1687.9275,5.6120,89.6197,1,0);
LSPD[0] = ptrLSPD;
pawn Код:
//Change
if(carid == LSPD[0] && PlayerInfo[playerid][Faction] != 1)
//to
if(ptrLSPD <= carid <= ptrLSPD + LSPD_CARS && PlayerInfo[playerid][Faction] != 1)