CMD:help(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { SCM(playerid,COLOR_WHITE,"/adminhelp"); } SCM(playerid,COLOR_LIGHTBLUE,"__________________HELP___________________"); SCM(playerid,COLOR_WHITE,"CAR HELP: /deletecar, /veh, /park, /addrims"); SCM(playerid,COLOR_WHITE,"CHAT HELP: /o, /b, /local,/shout, "); SCM(playerid,COLOR_WHITE,"GENERAL HELP: /buylevel "); } else { SCM(playerid,COLOR_WHITE,"[SERVER]: You're not authorized to use this command"); return 0; } }
else { SCM(playerid,COLOR_WHITE,"[SERVER]: You're not authorized to use this command"); return 0;
C:\Users\Bart\Downloads\Roleplay\Roleplay\gamemodes\esrp.pwn(478) : error 010: invalid function or declaration C:\Users\Bart\Downloads\Roleplay\Roleplay\gamemodes\esrp.pwn(481) : error 010: invalid function or declaration
CMD:help(playerid, params[])
{
SCM(playerid,COLOR_LIGHTBLUE,"__________________HELP___________________");
SCM(playerid,COLOR_WHITE,"CAR HELP: /deletecar, /veh, /park, /addrims");
SCM(playerid,COLOR_WHITE,"CHAT HELP: /o, /b, /local,/shout, ");
SCM(playerid,COLOR_WHITE,"GENERAL HELP: /buylevel ");
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SCM(playerid,COLOR_WHITE,"ADMIN HELP: /adminhelp");
}
return 1;
}
CMD:help(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { SCM(playerid,COLOR_WHITE,"/adminhelp"); } SCM(playerid,COLOR_LIGHTBLUE,"__________________HE LP___________________"); SCM(playerid,COLOR_WHITE,"CAR HELP: /deletecar, /veh, /park, /addrims"); SCM(playerid,COLOR_WHITE,"CHAT HELP: /o, /b, /local,/shout, "); SCM(playerid,COLOR_WHITE,"GENERAL HELP: /buylevel "); return 1; } |
if(something)
{
blabla;
}
// HERE
else
{
blabla;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SCM(playerid,COLOR_WHITE,"/adminhelp");
// } Remove this line
SCM(playerid,COLOR_LIGHTBLUE,"__________________HELP___________________");
SCM(playerid,COLOR_WHITE,"CAR HELP: /deletecar, /veh, /park, /addrims");
SCM(playerid,COLOR_WHITE,"CHAT HELP: /o, /b, /local,/shout, ");
SCM(playerid,COLOR_WHITE,"GENERAL HELP: /buylevel ");
}