Quote:
Originally Posted by F1N4L
PHP код:
CMD:ah(playerid, params[])
{
new string[1000]; // Max number of cells
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "Error: Admins Only"); // Admin Check
if(PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(string, "/cmd1 /cmd2... \n");
}
if(PlayerInfo[playerid][pAdmin] >= 2)
{
strcat(string, "/cmd3 /cmd4... \n");
}
if(PlayerInfo[playerid][pAdmin] >= 3)
{
strcat(string, "/cmd5 /cmd6... \n");
}
if(PlayerInfo[playerid][pAdmin] >= 4)
{
strcat(string, "/cmd7 /cmd8... \n");
}
if(PlayerInfo[playerid][pAdmin] >= 5)
{
strcat(string, "/cmd9 /cmd10... \n");
}
if(PlayerInfo[playerid][pAdmin] >= 6)
{
strcat(string, "/cmd11 /cmd12... \n");
}
if(PlayerInfo[playerid][pAdmin] >= 7)
{
strcat(string, "/cmd13 /cmd14... \n");
}
ShowPlayerDialog(playerid, DIALOG_adminh6, DIALOG_STYLE_MSGBOX, "Admin CMDS", string, "OK", ""); // Show dialog
return 1;
}
|
Код:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
on line
Код:
ShowPlayerDialog(playerid, DIALOG_adminh6, DIALOG_STYLE_MSGBOX, "Admin CMDS", string, "OK", "");