whats wrong
#1

PHP код:
CMD:tollmenu(playeridparams[])
{
    
//if(!IsACop(playerid)) return SCM(playerid, COLOR_LGREEN, "a!");
    //if(PlayerInfo[playerid][pRank] < 6) return SCM(playerid, COLOR_LGREEN, "b!");
    //if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "c!");
    
new sDialog[120];
    if(
toll == 0format(sDialogsizeof(sDialog), "The LS/LV toll is{80FF00}(Open){FFFFFF}Click to close.");
    else if(
toll == 1format(sDialogsizeof(sDialog), "Tge LS/LV toll is {FF0000}(Closed){FFFFFF}Click to open.");
    
ShowPlayerDialog(playeridDIALOG_TOLLMENUDIALOG_STYLE_LIST"Cop toll menu"sDialog"Ok""Exit");
    return 
1;

the cmd doesnt work if i add these lines
PHP код:
    if(!IsACop(playerid)) return SCM(playeridCOLOR_LGREEN"a!");
    if(
PlayerInfo[playerid][pRank] < 6) return SCM(playeridCOLOR_LGREEN"b!");
    if(
OnDuty[playerid] == 0) return SCM(playeridCOLOR_LGREEN"c!"); 
what s the problem?
Reply
#2

Well... Statements return false so... What does it output? A B or C?
Reply
#3

it doesn return anything and there is no output.

the script just crashes

note:its in an include
Reply
#4

That's not possible.. Does it compile successfully? Is SCM defined? Show how it is.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)