23.09.2010, 21:48
Hello, again. I am working on a MySQL based vehicle system, for my next script update. I keep getting 2 errors, but I don't know what they mean.
This is the code:
It isn't much, but I just need to get this crap working. What seems to be the problem?
Код:
C:\Users\Nick\Documents\--\--\gamemodes\Testing123.pwn(436) : error 022: must be lvalue (non-constant) C:\Users\Nick\Documents\--\--\gamemodes\Testing123.pwn(437) : error 022: must be lvalue (non-constant) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
pawn Код:
command(savecar, playerid, params[])
{
new vehicleid;
if(PlayerStatistics[playerid][pAdminLevel] >= 3)
{
vehicleid = GetPlayerVehicleID(playerid);
vInterior = GetPlayerInterior(playerid);
vVirtualWorld = GetPlayerVirtualWorld(playerid);
SaveVehicleToDatabase(vehicleid);
}
return 1;
}