24.08.2015, 01:43
errors
Line
pawn Код:
C:\Users\CraTzy\Desktop\Texture-Studio-master\filterscripts\tstudio\vehicles.pwn(207) : error 017: undefined symbol "EditingMode"
C:\Users\CraTzy\Desktop\Texture-Studio-master\filterscripts\tstudio\vehicles.pwn(207) : warning 215: expression has no effect
C:\Users\CraTzy\Desktop\Texture-Studio-master\filterscripts\tstudio\vehicles.pwn(207) : error 001: expected token: ";", but found "]"
C:\Users\CraTzy\Desktop\Texture-Studio-master\filterscripts\tstudio\vehicles.pwn(207) : error 029: invalid expression, assumed zero
C:\Users\CraTzy\Desktop\Texture-Studio-master\filterscripts\tstudio\vehicles.pwn(207) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
public OnEnterExitModShop(playerid,enterexit,interiorid)
{
if(enterexit == 1) EditingMode[playerid] = true; //207
if(enterexit == 0)
{
new vid = GetPlayerVehicleID(playerid);
foreach(new i : Cars)
{
if(CarData[i][CarID] == vid)
{
for(new j = 0; j < MAX_CAR_COMPONENTS; j++)
{
CarData[i][CarComponents][j] = GetVehicleComponentInSlot(vid, j);
}
sqlite_SaveVehicleData(i);
if(GetEditMode(playerid) == EDIT_MODE_MODCAR)
{
SetVehiclePos(vid, ModCarPos[playerid][0], ModCarPos[playerid][1], ModCarPos[playerid][2]);
SetVehicleZAngle(vid, ModCarPos[playerid][3]);
SetEditMode(playerid, EDIT_MODE_NONE);
}
EditingMode[playerid] = false;
return 1;
}
}
}
return 1;
}