[HELP] Accessing element at index 682 past array upper bound 681
#2

I was thinking the problem its somewhere here:
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, "GOD", true)) //Checking if the NPC's name is GOD
      { //Putting the NPC into the vehicle we created for it.
        return 1;
      }
      return 1;
    }
But the problem its not here i tried to change MAX_PLAYER_NAME with MAX_PLAYERS.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)