C:\Users\XXXX\Desktop\0.3a SAMP Server\filterscripts\a_fuel.pwn(93) : error 033: array must be indexed (variable "invalidvehs") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
new invalidvehs[0][0] =
{
{441}, {464}, {465}, {481}, {501},
{509}, {510}, {564}, {572}, {594}
};
public IsVehicleValid(vehicleid)
{
if (GetVehicleModel(vehicleid) == invalidvehs[0]) return false; // Line 93
else return true;
}
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
Hmm, on line 93, try to take out the second ' = ' and see what happens. |
C:\Users\XXXX\Desktop\0.3a SAMP Server\filterscripts\a_fuel.pwn(93) : warning 211: possibly unintended assignment C:\Users\XXXX\Desktop\0.3a SAMP Server\filterscripts\a_fuel.pwn(93) : error 022: must be lvalue (non-constant) C:\Users\XXXX\Desktop\0.3a SAMP Server\filterscripts\a_fuel.pwn(93) : warning 215: expression has no effect C:\Users\XXXX\Desktop\0.3a SAMP Server\filterscripts\a_fuel.pwn(93) : error 001: expected token: ";", but found ")" C:\Users\XXXX\Desktop\0.3a SAMP Server\filterscripts\a_fuel.pwn(93) : error 029: invalid expression, assumed zero C:\Users\XXXX\Desktop\0.3a SAMP Server\filterscripts\a_fuel.pwn(93) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
new invalidvehs[] =
{
441, 464, 465, 481, 501, 509, 510, 564, 572, 594
};
public IsVehicleValid(vehicleid)
{
new k = sizeof(invalidvehs);
for(new i;i<k;i++)
if(GetVehicleModel(vehicleid) == invalidvehs[i]) return false; // Line 93
return true;
}
IsVehicleValid(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case 441, 464, 465, 481, 501, 509, 510, 564, 572, 594 :
return false;
}
return true;
}