09.06.2013, 05:34
Please help me how to fix that error:
And the lines:
And the script.
PHP код:
Kit-Zone\gamemodes\pcs..pwn(21671) : error 017: undefined symbol "newcar"
Kit-Zone\gamemodes\pcs..pwn(21672) : error 017: undefined symbol "newcar"
PHP код:
GetVehiclePos(car, CarInfo[newcar][cLocationx], CarInfo[newcar][cLocationy], CarInfo[newcar][cLocationz]);
SetPlayerCheckpoint(playerid, CarInfo[newcar][cLocationx], CarInfo[newcar][cLocationy], CarInfo[newcar][cLocationz], 6);
PHP код:
else if(strcmp(x_nr,"locate1",true) == 0)
{
new car = PlayerInfo[playerid][pPcarkey];
new Float:cLocationx;
new Float:cLocationy;
new Float:cLocationz;
if(!IsPlayerConnected(playerid))
{
return 1;
}
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
if(PlayerOnMission[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " {CCCCCC}Poti folosi comanda cand termini {FFFFFF}Mission!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey]==-1)
{
GameTextForPlayer(playerid, "~w~You do not have a car to locate", 2500, 3);
return 1;
}
}
SendClientMessage(playerid,COLOR_WHITE,"Car spawn location is red on a map");
GetVehiclePos(car, CarInfo[newcar][cLocationx], CarInfo[newcar][cLocationy], CarInfo[newcar][cLocationz]);
SetPlayerCheckpoint(playerid, CarInfo[newcar][cLocationx], CarInfo[newcar][cLocationy], CarInfo[newcar][cLocationz], 6);
CP[playerid] = 987;
return 1;
}