E:\Program Files\COD8 - AaW\gamemodes\codteam.pwn(13820) : error 029: invalid expression, assumed zero
#1

On Line
Код:
		   case 5:
 13820 		   {
              if(PlayerInfo[playerid][dRank] >= 2
                {
				   gClass[playerid] = DONOR;
				   SendClientMessage(playerid, -1,"You have chosen Donor class");
				   SendClientMessage(playerid, -1,"BONUS: You can drive anything! with special weapons");
				   UpdateLabelText(playerid);
				}
				else
				{
	            	ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST,"Class Selection","Soldier - Rank 0\nSniper - Rank 2\nPilot - Rank 4\nEngineer - Rank 5\nSupport - Rank 6\nDonor - Only For Donor","Select","");
                   SendClientMessage(playerid, red,"You need to have drank 2 to use this class!");
				}
		   }
	   }
   }
	return 1;
on red line!!
Reply
#2

I face that problem, u have to read and check ur code.. Or contact me on ******** i will give u code then u can replace it..
Reply
#3

try this:
pawn Код:
case 5:
             {
              if(PlayerInfo[playerid][dRank] >= 2) // FORGET A CLOSING ) HERE :)
                {
                   gClass[playerid] = DONOR;
                   SendClientMessage(playerid, -1,"You have chosen Donor class");
                   SendClientMessage(playerid, -1,"BONUS: You can drive anything! with special weapons");
                   UpdateLabelText(playerid);
                }
                else
                {
                    ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST,"Class Selection","Soldier - Rank 0\nSniper - Rank 2\nPilot - Rank 4\nEngineer - Rank 5\nSupport - Rank 6\nDonor - Only For Donor","Select","");
                   SendClientMessage(playerid, red,"You need to have drank 2 to use this class!");
                }
           }
       }
   }
    return 1;
Reply
#4

ok ty bro <3 but i fixed it myself but ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)