SA-MP Forums Archive
E:\Program Files\COD8 - AaW\gamemodes\codteam.pwn(13820) : error 029: invalid expression, assumed zero - 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)
+--- Thread: E:\Program Files\COD8 - AaW\gamemodes\codteam.pwn(13820) : error 029: invalid expression, assumed zero (/showthread.php?tid=545361)



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

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!!


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

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..


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

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;



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

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