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


Messages In This Thread
Help 1 error - by DarkPower - 06.08.2010, 16:29
Re: Help 1 error - by willsuckformoney - 06.08.2010, 16:34
Re: Help 1 error - by DarkPower - 06.08.2010, 16:36
Re: Help 1 error - by willsuckformoney - 06.08.2010, 16:38
Re: Help 1 error - by Zafire1410 - 06.08.2010, 16:41
Re: Help 1 error - by DarkPower - 06.08.2010, 16:42
Re: Help 1 error - by willsuckformoney - 06.08.2010, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)