Need help with cmd + rep
#1

Код:
error 029: invalid expression, assumed zero
Код:
CMD:duty(playerid, params[]) {
	if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroupRank] >= 4)
	{
		else{ 
		new
		string[128];
		switch(playerVariables[playerid][pLSPDDUTY])
		{
				case 0:
				{
 					playerVariables[playerid][pLSPDDUTY] = 1;
					GetPlayerHealth(playerid, playerVariables[playerid][pHealth]);
					GetPlayerArmour(playerid, playerVariables[playerid][pArmour]);
					SetPlayerName(playerid, playerVariables[playerid][pNormalName]);
					SetPlayerHealth(playerid, 100.0);
					format(string, sizeof(string), "Notice: {FFFFFF}Officer %s (%s) is now on Los Angelos Police duty.", playerVariables[playerid][pAdminName], playerVariables[playerid][pNormalName]);
				}
				case 1:
				{
	 	   			playerVariables[playerid][pLSPDDUTY] = 0;
					SetPlayerName(playerid, playerVariables[playerid][pNormalName]);
					SetPlayerHealth(playerid, playerVariables[playerid][pHealth]);
					SetPlayerArmour(playerid, playerVariables[playerid][pArmour]);
					format(string, sizeof(string), "Notice: {FFFFFF}Admin %s (%s) is now off Los Angelos Police duty.", playerVariables[playerid][pAdminName], playerVariables[playerid][pNormalName]);
 				}
			}
		}
	}
	return 1;
}
For helping me I will reward every one with + rep
Reply


Messages In This Thread
Need help with cmd + rep - by trapped1 - 05.02.2012, 00:03
Re: Need help with cmd + rep - by trapped1 - 05.02.2012, 00:15
Re: Need help with cmd + rep - by Psymetrix - 05.02.2012, 00:16

Forum Jump:


Users browsing this thread: 2 Guest(s)