Posts: 68
	Threads: 19
	Joined: Jan 2012
	
	
 
	
	
		I can't get this on work: 
Код:
 case 1:
			{ if( rank[playerid] < 1 ){
				ShowPlayerDialog(playerid, DIALOG_SNIPER, DIALOG_STYLE_MSGBOX, "Class Information", "Information...", "Choose", "Back");
                                else SendClientMessage(playerid,1) "You have not rank 1" ))
			}
 Suggestions?
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 445
	Threads: 96
	Joined: Jan 2011
	
Reputation: 
0
	 
 
	
	
		try explaining what is wrong with it.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 68
	Threads: 19
	Joined: Jan 2012
	
	
 
	
	
		
Код:
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(156) : warning 225: unreachable code
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(164) : error 017: undefined symbol "rank"
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(164) : warning 215: expression has no effect
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(164) : error 001: expected token: ";", but found "]"
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(164) : error 029: invalid expression, assumed zero
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(164) : fatal error 107: too many error messages on one line
 (ignore the warnings)
This are the ranks:
Код:
CheckForLevelUpdate(playerid);
stock CheckForLevelUpdate(playerid)
{
    if ( GetPlayerScore(playerid) >= 5 ) {
        if( rank[playerid] < 1 ) {
            PlayerPlaySound(playerid, 1150, 0, 0, 0);
            SendClientMessage(playerid, COLOR_CON_GREEN,"You Got Promoted!");
            SendClientMessage(playerid, COLOR_CON_GREEN, "*You are a Private!");
            rank[playerid] = 1;
            SetPlayerWantedLevel(playerid, rank[playerid]);
            GivePlayerMoney(playerid, 10000);
        }
    }
    if ( GetPlayerScore(playerid) >= 50 ) {
        if( rank[playerid] < 2 ) {
            PlayerPlaySound(playerid, 1150, 0, 0, 0);
            SendClientMessage(playerid, COLOR_CON_GREEN,"You Got Promoted!");
            SendClientMessage(playerid, COLOR_CON_GREEN, "**You are a Corporal!");
            rank[playerid] = 2;
            SetPlayerWantedLevel(playerid, rank[playerid]);
            GivePlayerMoney(playerid, 20000);
        }
    }
 
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 68
	Threads: 19
	Joined: Jan 2012
	
	
 
	
	
		Thanks Dwane. It's solved
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 68
	Threads: 19
	Joined: Jan 2012
	
	
 
	
	
		Weird, by editting the SendClientMessages : 
Код:
C:\Users\Nick\Desktop\Call Of Duty - Engine SA-MP\gamemodes\Untitled.pwn(308) : error 030: compound statement not closed at the end of file (started at line 159)
  All statements are closed and there is no line 308?