D:\BS\mode dang edit\BS.pwn(1103) : error 012: invalid function call, not a valid address D:\BS\mode dang edit\BS.pwn(1103) : warning 215: expression has no effect D:\BS\mode dang edit\BS.pwn(1103) : error 001: expected token: ";", but found ")" D:\BS\mode dang edit\BS.pwn(1103) : error 029: invalid expression, assumed zero D:\BS\mode dang edit\BS.pwn(1103) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
VehInSystem(XeInfo[XeLSL][EVVehID]) = 1;
if (VehInSystem(XeInfo[XeLSL][EVVehID]) == 1)
{
// code..
}
|
@Konstantinos
I believe ''= 1;'' is for setting a player to an enum, not for ''if'' function. |
new VehInSystem[MAX_VEHICLES];
if(VehInSystem[vehicleid] == 1)
{
new string[128];
new EVSystemID = VehEVID[vehicleid];
format(String, 128, "System ID : %d {ADFF2F}| {FFFFFF}Model : %s", EVSystemID, VehNames[ EvoVehicles[ EVSystemID ][EVModel]-400 ]);
SendClientMessage(playerid, COLOR_GREY, string);
if(!strfind(EvoVehicles[ EVSystemID ][EVOwner], "Showroom", true))
{
SendClientMessage(playerid, COLOR_GREY, "This vehicle is for sale in Showroom.");
}
else
{
if(!strfind("-", EvoVehicles[ EVSystemID ][EVOwner], true)) return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have any owner and it is for sale.");
if(!strfind(GetName(playerid), EvoVehicles[ EVSystemID ][EVOwner], true))
{
SendClientMessage(playerid, COLOR_GREY, "Welcome to Your Vehicle");
}
else
{
format(String, 128, "This vehicles owner is {ADFF2F}%s", EvoVehicles[ EVSystemID ][EVOwner]);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
VehInSystem(XeInfo[XeLSL][EVVehID]) = 1;
VehInSystem[XeInfo[XeLSL][EVVehID]] = 1;