Help 1 error
#1

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

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

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

it just says that

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

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

OMG XDXDXD i forrget ; on GameText srry
Reply
#7

told ya xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)