SetPlayerTeam problem
#1

I have been doing little experiment with SetPlayerTeam function. when I enter interior 4, it should set me in team 189, but insted it sets me in team 255. same happens when I leave interior 4. please help
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {

  if(newinteriorid == 4) {
    new str[64];
    SetPlayerTeam(playerid, 189);
    format(str, sizeof(str), "Current team: %i", GetPlayerTeam(playerid));
    SendClientMessage(playerid,WHITE,str);
    return 1;
  }
  if(newinteriorid == 0) {
    new str[64];
    SetPlayerTeam(playerid, playerid);
    format(str, sizeof(str), "Current team: %i", GetPlayerTeam(playerid));
    SendClientMessage(playerid,WHITE,str);
    return 1;
  }
  return ;
}
Reply
#2

on the second one you did SetPlayerTeam(Playerid,platyerid); Maybe thats why.
Reply
#3

It cannot be because of what you said. please more opinions...
Reply
#4

Complete bug list
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)