error 029: invalid expression, assumed zero
#1

I'm trying to make a /help command with a dialog so thats what i've got

Код:
	if(strcmp(cmd, "/help", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			{
			new help[2230];
			{
			strins(help,"{D90000}Команди:\n",strlen(help));
			strins(help,"{F4F400} {FFFFFF}/stats /pm /rules /report /changepass /id\n",strlen(help));
			}
			{
			strins(help,"{D90000}/rules /report /changepass /id /pay /lotto\n",strlen(help));
			strins(help,"{F4F400} /pay /lotto /bounties /admins /animlist\n",strlen(help));
			}
			{
			strins(help,"{D90000}/count /afkplayers /kill /adminskypes\n",strlen(help));
			strins(help,"{F4F400} /drift [1-10] /prodrift /stunt /parajump /parajump2\n",strlen(help));
			}
			{
			strins(help,"{D90000}/dm /dm2 /dmon\n",strlen(help));
			strins(help,"{F4F400}/vipusers /viphelp\n",strlen(help));
			}
			{
			strins(help,"{D90000}/leavefaction /members /acceptfaction(/af) /cancelfaction(/cf) /faction /leaders\n",strlen(help));
			}
			if(PlayerInfo[playerid][pRank] == 6)
			{
			strins(help,"{D90000}/invite /uninvite /setrank /changerankname /leaderchat(/lc)\n",strlen(help));
			}
			else if(PlayerInfo[playerid][pMember] == TEAM_xKillaz)
			{
   			strins(help,"{D90000}xKillaz\n",strlen(help));
			strins(help,"{D90000}/hidekillaz /showkillaz\n",strlen(help));
			}
		 	else if(PlayerInfo[playerid][pMember] == TEAM_RIFA
			{
			strins(help,"{D90000}San Fiero Rifa\n",strlen(help));
			strins(help,"{D90000}/hiderifa /showrifa\n",strlen(help));
			}
            else if(PlayerInfo[playerid][pMember] == TEAM_GROVE)
			{
			strins(help,"{D90000}Grove Street Families\n",strlen(help));
			strins(help,"{D90000}/hidegrove /showgrove\n",strlen(help));
			}
			else if(PlayerInfo[playerid][pMember] == TEAM_LSPD)
			{
			strins(help,"{D90000}Los Santos Police Department\n",strlen(help));
			strins(help,"{F4F400}/duty /arrest /suspectf /mdc\n",strlen(help));
			}
			else if(PlayerInfo[playerid][pMember] == TEAM_SPECIALFORCE)
			{
			strins(help,"{D90000}Special Forces\n",strlen(help));
			strins(help,"{F4F400} /lockspecial /hideforce /showforce\n",strlen(help));
			}
			else if(PlayerInfo[playerid][pMember] == TEAM_LVPD)
			{
			strins(help,"{D90000}Las Venturas Police Department\n",strlen(help));
			strins(help,"{F4F400} /invite /видимост /невидимост /uninvite /setrank /frespawn\n",strlen(help));
			}
		 	else if(PlayerInfo[playerid][pAdmin] == 1)
			{
			strins(help,"{D90000}Админ Команди:\n",strlen(help));
			strins(help,"{F4F400} (/a)dmin (/ah)elp\n",strlen(help));
			}
			ShowPlayerDialog(playerid,dialog_command,DIALOG_STYLE_MSGBOX,"{D90000}Команди:",help,"Изход","");
			}
			return 1;
		}
	}
Then i get this error: error 029:invalid expression, assumed zero
Its the line after
Код:
else if(PlayerInfo[playerid][pMember] == TEAM_RIFA)
Please help me
Reply
#2

you missed a ')'
Reply
#3

Quote:
Originally Posted by SyS
Посмотреть сообщение
you missed a ')'
Omg im so stupid...

Admins please lock!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)