SA-MP Forums Archive
An problem when i log in - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: An problem when i log in (/showthread.php?tid=119480)



An problem when i log in - WardenCS - 08.01.2010

Hey,i got problem,wanted to make if ur donator it will show that donator joined,
but it isnt then just joined
but...it will show twice that player joined

heres the lines


pawn Код:
if(PlayerInfo[playerid][pDonateRank] != 0)
        {//<=====
        new pName[MAX_PLAYER_NAME];
        new string[85];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "Donator %s Joined the server. (Joined)", pName);
        SendClientMessageToAll(0x9ACD32AA, string);
        }
            else//And there was no need for the else if, just an else will do
        {
        new string[85];
        new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), " %s Joined the server. (Joined)", pName);
    SendClientMessageToAll(0x9ACD32AA, string);
        }