Coding with two different players in one loop? (how to assign variables for checking?)
#2

change it to :
pawn Код:
new wantedid[MAX_PLAYERS],ticketid[MAX_PLAYERS] // declare this on top of your script not inside your public OnPlayerUpdate2() (remove the variable wantedid and the ticketid cuz u already have a gloval var wantedid[MAX_PLAYERS] and ticketid[MAX_PLAYERS]

// and reset it everytime player disconnects
public OnPlayerDisconnect(playerid, reason)
{
      wantedid[playerid]=0;
      ticketid[playerid]=0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)