Error|Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error|Help (
/showthread.php?tid=104213)
Error|Help -
orking990 - 23.10.2009
This is the code:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "mynpc", true)) //Checking if the NPC's name is mynpc
{
PutPlayerInVehicle(playerid, Bus, 0); //Putting the NPC into the vehicle we created for it.
return 1;
}
return 1;
}
return 1;
}
Error:error 017: undefined symbol "IsPlayerNPC"
Re: Error|Help -
Streetplaya - 23.10.2009
Get the 0.3 includes