how do i solve it ?
#1

after few hours trying to fix it ,
im asking forum members to help me
+REP if you solve me this errors

pawn Код:
C:\Users\CraTzy\Desktop\TEST\filterscripts\blah\vehicles.pwn(208) : error 017: undefined symbol "EditingMode"
C:\Users\CraTzy\Desktop\TEST\filterscripts\blah\vehicles.pwn(208) : warning 215: expression has no effect
C:\Users\CraTzy\Desktop\TEST\filterscripts\blah\vehicles.pwn(208) : error 001: expected token: ";", but found "]"
C:\Users\CraTzy\Desktop\TEST\filterscripts\blah\vehicles.pwn(208) : error 029: invalid expression, assumed zero
C:\Users\CraTzy\Desktop\TEST\filterscripts\blah\vehicles.pwn(208) : 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; //Line 208
    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;
}
Reply
#2

Shouldn't
if(enterexit == 1) EditingMode[playerid]; = true; //Line 208
become

if(enterexit == 1) EditingMode[playerid] = true; //Line 208
Reply
#3

You're placing ' ; ' look.
Reply
#4

errors
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.
Line
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;
}
Reply
#5

I think add that line under one bracket using operators.

I am on mobile.
Reply
#6

still don't get you :/
Reply
#7

put this on top of your script below includes and defines

pawn Код:
new bool:EditingMode[MAX_PLAYERS] = false;
Reply
#8

+ rep for all of you anyway i didnt fixed it all gone deleted from my pc
Reply
#9

If you wanted a solution, it was caused due to an unfinished piece of code.
Reply
#10

Unfinished :O
what a hell I done all there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)