Jump to content
  • 0

/vips


Deejaybwg

Question

Am facut comanda /vips, la fel cum e /admins in LuxAdmin.

Asta e comanda:

dcmd_vips(playerid,params[])
{
    #pragma unused params
        new count = 0;
        new string[128];
        new ChangeColor;
  		SendClientMessage(playerid, blue, " ");
        SendClientMessage(playerid, blue, "___________ |- Online Vips -| ___________");
		SendClientMessage(playerid, blue, " ");
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
	 		if (IsPlayerConnected(i))
 			{
					if(IsPlayerVipMember(playerid))
 				{
				 		switch(IsPlayerVipMember(playerid))
						{
							case 1: {
							AdmRank = "Level 1";
							ChangeColor = Color_Level_1;
							}
							case 2: {
							AdmRank = "Level 2";
							ChangeColor = Color_Level2;
							}
							case 3: {
							AdmRank = "Level 3";
							ChangeColor = Color_Level_3;
							}
						}
					}
		 			switch(AccInfo[i][OnDuty])
					{
						case 0: AdmDuty = "Playing!";
						case 1: AdmDuty = "On Duty!";
					}
					format(string, 128, "Level: %d - %s (Id:%i) | %s | %s",IsPlayerVipMember[i][Level], PlayerName2(i),i,AdmRank,AdmDuty);
					SendClientMessage(playerid, ChangeColor, string);
					count++;
				}
			}
		}
		if (count == 0)
		SendClientMessage(playerid,green,"No Vips online in the list");
		SendClientMessage(playerid, blue, " _______________________________________");
		return 1;
}
Am dat Compile si mi-a dat: C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 001: expected token: ",", but found "[" C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 029: invalid expression, assumed zero C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 001: expected token: ";", but found "]" C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : fatal error 107: too many error messages on one line Liniile:
6294       format(string, 128, "Level: %d - %s (Id:%i) | %s | %s",AccType[i][Level], PlayerName2(i),i,AdmRank,AdmDuty);
La tipurile de VIP am:
  case 1: AccType = "Level 1";
            case 2: AccType = "Level 2";
            case 3: AccType = "Level 3";

Si la /vips as vrea sa apara ca la /admins: NickMarian - Vip Level 1 sau 2.. etc.

www.youtube.com/thebwgg

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

xxSPEEDYxx, am pus cum ai zis si imi da asa:

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 217: loose indentation

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 001: expected token: ",", but found "("

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 001: expected token: ";", but found ")"

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 029: invalid expression, assumed zero

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : fatal error 107: too many error messages on one line

www.youtube.com/thebwgg

Link to comment
Share on other sites

xxSPEEDYxx, am pus cum ai zis si imi da asa:

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 217: loose indentation

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 001: expected token: ",", but found "("

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 215: expression has no effect

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 001: expected token: ";", but found ")"

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : error 029: invalid expression, assumed zero

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : fatal error 107: too many error messages on one line

da de ce faci cu IsPlayerVipMember?  :undecided:

cand poti face comanda direct in LuxAdmin punand asa in loc de IsPlayerVipMemeber:

AccInfo[ i ][ pVip ]?

incearca akm..;)

Fara reclama in semnatura!

Link to comment
Share on other sites

Acum imi da asa:

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6289) : warning 217: loose indentation

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 217: loose indentation

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6295) : warning 217: loose indentation

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6300) : error 010: invalid function or declaration

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6303) : error 010: invalid function or declaration

Nu stiu de ce.. :|

www.youtube.com/thebwgg

Link to comment
Share on other sites

Acum imi da asa:

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6289) : warning 217: loose indentation

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6294) : warning 217: loose indentation

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6295) : warning 217: loose indentation

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6300) : error 010: invalid function or declaration

C:\Users\Bwggu\Desktop\LuxAdmin.pwn(6303) : error 010: invalid function or declaration

Nu stiu de ce.. :|

cares linile?

Fara reclama in semnatura!

Link to comment
Share on other sites

6289 		 switch(AccInfo[i][OnDuty])
6294  format( string, sizeof( string ), "Level: %d - %s (Id:%i) | %s | %s" , AccInfo[ i ][ pVip ], PlayerName2( i ), i, AdmRank ,AdmDuty );
6295				SendClientMessage(playerid, ChangeColor, string);
6300 		if (count == 0)
6303 		return 1;

Astea sunt liniile cu error/warn.

www.youtube.com/thebwgg

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.