Server bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server bug (
/showthread.php?tid=385547)
Server bug -
verlaj - 16.10.2012
when my player get enough score to achive this rank, nothing happens.
here is my code.
pawn Код:
if(gTeam[playerid] == TEAM_GROVE)
if (GetPlayerScore(playerid) >= 250 && GetPlayerScore(playerid) <= 300)
{
new pName[24];
new str[128];
GetPlayerName(playerid, pName, 24);
format(str, 128, "%s has Advanced to level 4", pName);
SendClientMessageToAll(COLOR_GREEN, str);
SetPlayerSkin(playerid,269);
SendClientMessage(playerid,COLOR_AZTECS,"You're Big Smoke");
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 120);
}
Re: Server bug -
verlaj - 16.10.2012
And yes, it will work if i remove gTeam but the problem if is player team TEAM_GROVE and he has enough scores then his rank will be set to this one.
Re: Server bug -
verlaj - 16.10.2012
nvm problem is fixed :P
i used
pawn Код:
if(GetPlayerTeam(playerid) == TEAM_GROVE)