Vehicle System - Errors - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle System - Errors (
/showthread.php?tid=178758)
Vehicle System - Errors -
Scenario - 23.09.2010
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.
Код:
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.
This is the code:
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;
}
It isn't much, but I just need to get this crap working. What seems to be the problem?
Re: Vehicle System - Errors -
Chaprnks - 24.09.2010
Which one of those lines are 436 and 437. Also, where is vInterior and vVirtualWorld defined.
Re: Vehicle System - Errors -
Scenario - 24.09.2010
I have changed my code, this thread can be deleted. Thanks though!