Server bug
#1

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);
    }
Reply
#2

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.
Reply
#3

nvm problem is fixed :P

i used
pawn Код:
if(GetPlayerTeam(playerid) == TEAM_GROVE)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)