when compile i get error why? plz help
#1

why i get erorrs when compile this code?
pawn Код:
{
  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, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
    }
    return 1;
  }
  //Other stuff for normal players goes here!
  return 1;
}
Reply


Messages In This Thread
when compile i get error why? plz help - by Sfinx_17 - 26.11.2009, 23:51
Re: when compile i get error why? plz help - by Devine - 26.11.2009, 23:55
Re: when compile i get error why? plz help - by Sfinx_17 - 26.11.2009, 23:58
Re: when compile i get error why? plz help - by dugi - 27.11.2009, 09:10

Forum Jump:


Users browsing this thread: 1 Guest(s)