OnPlayerRequestSpawn just not working :S ???
#5

Quote:
Originally Posted by [MG]Trotty
Посмотреть сообщение
pawn Код:
public OnPlayerRequestSpawn(playerid)
{

    if(gTeam[playerid] == CLASS_MERC || GetPlayerScore(playerid) < 100){SendClientMessage(playerid, RED, "[ATT]:You Must Have Atleast 100 Score To Be A Mercenary Class!");
    }
    return 1;
    }
    return 0;
}
I just tryed it in my script and it worked ok
I think it didn't, you had the brackets wrong and the returns at the opposite places

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(gTeam[playerid] == CLASS_MERC && GetPlayerScore(playerid) < 100)
  {
    SendClientMessage(playerid, RED, "[ATT]:You Must Have Atleast 100 Score To Be A Mercenary Class!");
    return 0;
  }
  return 1;
}
Reply


Messages In This Thread
OnPlayerRequestSpawn just not working :S ??? - by <Weponz> - 27.10.2010, 08:22
Re: OnPlayerRequestSpawn just not working :S ??? - by Hiddos - 27.10.2010, 08:23
Re: OnPlayerRequestSpawn just not working :S ??? - by (SF)Noobanatior - 27.10.2010, 08:28
Re: OnPlayerRequestSpawn just not working :S ??? - by Kidemo - 27.10.2010, 08:34
Re: OnPlayerRequestSpawn just not working :S ??? - by Hiddos - 27.10.2010, 08:37
Re: OnPlayerRequestSpawn just not working :S ??? - by Kidemo - 27.10.2010, 08:39

Forum Jump:


Users browsing this thread: 1 Guest(s)