Bug or Error?:(
#1

Please help me how to fix that error:
PHP код:
Kit-Zone\gamemodes\pcs..pwn(21671) : error 017undefined symbol "newcar"
Kit-Zone\gamemodes\pcs..pwn(21672) : error 017undefined symbol "newcar" 
And the lines:
PHP код:
GetVehiclePos(carCarInfo[newcar][cLocationx], CarInfo[newcar][cLocationy], CarInfo[newcar][cLocationz]);
SetPlayerCheckpoint(playeridCarInfo[newcar][cLocationx], CarInfo[newcar][cLocationy], CarInfo[newcar][cLocationz], 6); 
And the script.
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(playeridCOLOR_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"25003);
                        return 
1;
                    }
                }
                  
SendClientMessage(playerid,COLOR_WHITE,"Car spawn location is red on a map");
                
GetVehiclePos(carCarInfo[newcar][cLocationx], CarInfo[newcar][cLocationy], CarInfo[newcar][cLocationz]);
                   
SetPlayerCheckpoint(playeridCarInfo[newcar][cLocationx], CarInfo[newcar][cLocationy], CarInfo[newcar][cLocationz], 6);
                   
CP[playerid] = 987;
                   return 
1;
            } 
Reply
#2

Put this above the "Car spawn location is red on a map" message:

pawn Код:
new newcar = GetPlayerVehicleID(playerid);
Reply
#3

I will try..
Reply
#4

new newcar = GetPlayerVehicleID(playerid);
I put this in "OnGameModeInit()"
?
Reply
#5

Please help me... he set the checkpoint to the coordonates 0.0, 0.0, 0.0, ...
Reply
#6

Try this

pawn Код:
GetVehiclePos(car, CarInfo[car][cLocationx], CarInfo[car][cLocationy], CarInfo[car][cLocationz]);
SetPlayerCheckpoint(playerid, CarInfo[car][cLocationx], CarInfo[car][cLocationy], CarInfo[car][cLocationz], 6);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)