24.12.2013, 12:35
Hey guys, I've tried to do when player clicks another player dialog will pop out, anyway I got the following error.
Thats all the public, can you tell me please whats the problem?
Quote:
C:\Documents and Settings\user\Desktop\Gamemode\Vane\gamemodes\vrp. pwn(31808) : error 029: invalid expression, assumed zero |
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new string[64];
new string2[128];
new ranktext[32];
(Line: 31808) - if(PlayerInfo[clickedplayerid][pHelper] == 1 && == 0){ ranktext = "Helper"; }
if(PlayerInfo[clickedplayerid][pAdmin] == 2 && == 0){ ranktext = "Administrator"; }
if(PlayerInfo[clickedplayerid][pAdmin] == 2 && == 0){ ranktext = "Administrator"; }
if(PlayerInfo[clickedplayerid][pAdmin] == 3 && == 0){ ranktext = "Lead Administrators"; }
if(PlayerInfo[clickedplayerid][pAdmin] == 6 && == 0){ ranktext = "Head Administrators"; }
else { ranktext = "Civilian"; }
if(clickedplayerid == playerid)
{
format(string, sizeof(string), "Player Info: %s", RPN);
format(string2, sizeof(string2), "Name: %s\nRank: %s\nLevel: %d\n Paycheck Time(60): %d", RPN(clickedplayerid),ranktext,PlayerInfo[clickedplayerid][pLevel], PlayerInfo[clickedplayerid][pMinutes]);
ShowPlayerDialog(playerid, 99, DIALOG_STYLE_MSGBOX, string, string2, "Ok","");
} else {
format(string, sizeof(string), "Player Info: %s", RPN);
format(string2, sizeof(string2), "Name: %s\nRank: %s\nLevel: %d", RPN(clickedplayerid),ranktext,PlayerInfo[clickedplayerid][pLevel]);
ShowPlayerDialog(playerid, 99, DIALOG_STYLE_MSGBOX, string, string2, "Ok","");
}
return 1;
}