18.01.2011, 00:59
Hey all
i have the script i have been modifying slowly that a mate gave me its just it i was to add a admin section to it EG
this is my current script
but if i was to add an admin version would i just add
this gives me ONE error saying
i have the script i have been modifying slowly that a mate gave me its just it i was to add a admin section to it EG
this is my current script
Код:
command(help, playerid, params[])
{
#pragma unused params
if(Player[playerid][InBusiness] >= 1)
{
ShowPlayerDialog(playerid, 3260, DIALOG_STYLE_LIST, "Help Menu", "Commands\nAdministrators\nRules\nFrequently Asked Questions\nCommands For This Business", "Select", "Cancel");
}
else
{
ShowPlayerDialog(playerid, 3260, DIALOG_STYLE_LIST, "Help Menu", "Commands\nAdministrators\nRules\nFrequently Asked Questions\n", "Select", "Cancel");
}
return 1;
}
Код:
ommand(help, playerid, params[])
{
#pragma unused params
if(Player[playerid][InBusiness] >= 1)
{
ShowPlayerDialog(playerid, 3260, DIALOG_STYLE_LIST, "Help Menu", "Commands\nAdministrators\nRules\nFrequently Asked Questions\nCommands For This Business", "Select", "Cancel");
}
else
{
ShowPlayerDialog(playerid, 3260, DIALOG_STYLE_LIST, "Help Menu", "Commands\nAdministrators\nRules\nFrequently Asked Questions\n", "Select", "Cancel");
}
(25085) else
{
if(Player[playerid][AdminLevel] >= 1)
{
ShowPlayerDialog(playerid, 3260, DIALOG_STYLE_LIST, "Help Menu", "Commands\nAdmin Team\nRules\nFrequently Asked Questions\nAdmin Commands", "Select", "Cancel");
}
}
return 1;
}
Код:
(25085) : error 029: invalid expression, assumed zero line(25085)consists of " else"

