komanda /admini

Započeo Garfield Campbell, Novembar 12, 2021, 20:53:01 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): : error 029: invalid expression, assumed zero ... warning 215: expression has no effect ... error 001: expected token: ";", but found "if"
Deo skripte: /admini

    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 9999)
				    {
					    new admtext[360];
                        else if(PlayerInfo[i][pAdmin] == 9999) { admtext = "Ceo"; }
					    else if(PlayerInfo[i][pAdmin] == 1342) { admtext = "Ceo/Founder"; }
						else if(PlayerInfo[i][pAdmin] == 1341) { admtext = "Founder"; }
						else if(PlayerInfo[i][pAdmin] == 1340) { admtext = "Admin Menager"; }
						else if(PlayerInfo[i][pAdmin] == 1339) { admtext = "GameMaster Menager"; }
						else if(PlayerInfo[i][pAdmin] == 1338) { admtext = "Head Admin"; }
						else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "Z.Head Admin"; }
						else if(PlayerInfo[i][pAdmin] == 1336) { admtext = "Co-Admin"; }
					    else if(PlayerInfo[i][pAdmin] == 5) { admtext = "Leader Managar"; }
					    else if(PlayerInfo[i][pAdmin] == 4) { admtext = "Administrator(4)"; }
						else if(PlayerInfo[i][pAdmin] == 3) { admtext = "Administrator(3)"; }
						else if(PlayerInfo[i][pAdmin] == 2)	{ admtext = "Administrator(2)"; }
						else if(PlayerInfo[i][pAdmin] == 1) { admtext = "Administrator(1)"; }
						GetPlayerName(i, sendername, sizeof(sendername));
						new reputacija = PlayerInfo[i][pReputacija];
						PlayerInfo[i][pReputacija] = reputacija;
						if(AdminDuty[i] == 1)
						{
Poslednja Izmena: Novembar 15, 2021, 15:11:29 POSLE PODNE od M Ө M Σ N Z I


bajo moj ne ide ti else if na prvo mjesto nikako.
ako imas if i otvoren bracket onda ide opet if da bi mogao koristiti else if
if(PlayerInfo[playerid][Admin] >= 1)
{
        if(playerinfo....)
        {
        nesto
        }
        else if(.......)
        {
        nesto
        }
}

[Filterscript] Simple Treasure Hunt
[Filterscript] Sistem pecanja
[Filterscript] Meditacija
[Filterscript] Molitva
[Include] Alarm
[Include] Posao Taxi