Vehicle System - Errors
#1

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?
Reply
#2

Which one of those lines are 436 and 437. Also, where is vInterior and vVirtualWorld defined.
Reply
#3

I have changed my code, this thread can be deleted. Thanks though!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)