NEED HELP FOR NPC -
yonik1988 - 10.08.2015
i am triing to make a npc , i have made the .rec , i have move it to npc -record , and at the scripting part i am taking this error
D:\jocuri\WhiteStuFF\gamemodes\proba.pwn(8763) : error 017: undefined symbol "davidVehicle"
D:\jocuri\WhiteStuFF\gamemodes\proba.pwn(8767) : warning 225: unreachable code
D:\jocuri\WhiteStuFF\gamemodes\proba.pwn(14200) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
this is what i did
new davidVehicle; //Global variable!
public OnGameModeInit()
here are the object i have added
after that is
print("my gamemode");
ConnectNPC("david","driving");
davidVehicle = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
return 1;
and at public OnPlayerSpawn(playerid) i have poot this
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "david", true)) //Checking if the NPC's name is david
{
PutPlayerInVehicle(playerid, davidVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
return 1;
help me please
Re: NEED HELP FOR NPC -
SoFahim - 11.08.2015
Define DevidVehicle .
Put return 1; before that last }
Extra: Please put the actual code with Code bb type. So we can give you solve script
Re: NEED HELP FOR NPC -
yonik1988 - 13.08.2015
thx i have find my old version that contains the npc in vehicle and it's working , buth now i have an other problem , i whant to create a few new npc on foot and i can't do that , i don't kow how to do it , i have made my .rec , and the first file buth at my gamemode whare i have the old npc i don't know how to add new npc on foot , the old one is in a car , and i want som new on foot pleas help me
Re: NEED HELP FOR NPC -
yonik1988 - 13.08.2015
i don't know what is cod bb i am a beiginner
Re: NEED HELP FOR NPC -
yonik1988 - 14.08.2015
iupiii i have maid it

i can't belive , thx very much