06.08.2010, 16:29
i trying to make carownership and i making /car park look at this code
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
Please help me i try 1000 times but evrytime i get this error -.-
TNX
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;
}
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;
TNX