SA-MP Forums Archive
Help 1 error - 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: Help 1 error (/showthread.php?tid=165898)



Help 1 error - DarkPower - 06.08.2010

i trying to make carownership and i making /car park look at this code

pawn Код:
if(strcmp(tmp,"park",true)==0)
        {
            if(IsPlayerConnected(playerid))
            {
               
                new carID = GetPlayerVehicleID(playerid);
                if(carID == CarInfo[playerid][ownedvehicle])
                {
                   GameTextForPlayer(playerid,"~w~Vozilo~r~ parkirano",5000,3)
                   new Float:currentX,Float:currentY,Float:currentZ,Float:currentANG;
                   GetPlayerPos(playerid,currentX,currentY,currentZ);
                   GetPlayerFacingAngle(playerid,currentANG);
                   CarInfo[playerid][cLocationx] = Float:currentX;
                   CarInfo[playerid][cLocationy] = Float:currentY;
                   CarInfo[playerid][cLocationz] = Float:currentZ;
                   CarInfo[playerid][cAngle] = Float:currentANG;
                   RemovePlayerFromVehicle(playerid);

               }
               else
               {
                   SendClientMessage(playerid, 0xA9C4E4AA, "Nisi u svom vozilu!");
               }

           }
           else
           {
               SendClientMessage(playerid, 0xA9C4E4AA,"Nisi povezan na server!");
            }
            return 1;
        }
I get some weird error

This: C:\Users\NASTIE\Desktop\New folder\The Godfather\gamemodes\mexico.pwn(11344) : error 001: expected token: ";", but found "new"

at this line

pawn Код:
new Float:currentX,Float:currentY,Float:currentZ,Float:currentANG;
Please help me i try 1000 times but evrytime i get this error -.-

TNX


Re: Help 1 error - willsuckformoney - 06.08.2010

can you show whats about that line? because somewhere your missing an ";"


Re: Help 1 error - DarkPower - 06.08.2010

This line > new Float:currentX,Float:currentY,Float:currentZ,Float :currentANG;


Re: Help 1 error - willsuckformoney - 06.08.2010

it just says that

Код:
error 001: expected token: ";", but found "new"
that means the ";" is missing before that line


Re: Help 1 error - Zafire1410 - 06.08.2010

chek the line up new float.... and check that line have ;


Re: Help 1 error - DarkPower - 06.08.2010

OMG XDXDXD i forrget ; on GameText srry


Re: Help 1 error - willsuckformoney - 06.08.2010

told ya xD