invalid expression, assumed zero
#1

PHP код:
    if(dialogid == DIALOG_SETTINGS)
    {
       if(
response)
       {
           switch(
listitem)
           {
              case 
0:showuistyledialog(playerid);
              case 
1:disableduelinvite(playerid);
           }
       }
    } 
PHP код:
stock disableduelinvite(playerid)
{
    
IsDuelDisabled[playerid] = true;
    
SendClientMessage(playerid, -1"{ff8000}(INFO) You now disabled duel invitations!");
    
ShowPlayerDialog(playeridDIALOG_SETTINGSDIALOG_STYLE_TABLIST_HEADERS"{FF0000}Your IG- Settings",
    
"Setting \tWhat it means?\n\
    UI Settings\t{4286f4}Used to hide/show textdraws.\n\
    {ff0000}Disable Duel\t{4286f4}Used to disable invitations.\n\
    PM Settings\t{4286f4}Used to disable PM's.\n\
    Points Settings\t{4286f4}Used to disable others to send points.\n\
    Skin Settings\t{4286f4}Used to set, and save skin."
,
    else
    {
    
IsDuelDisabled[playerid] = false;
    
SendClientMessage(playerid, -1"{ff8000}(INFO) You now enabled duel invitations!");
    
ShowPlayerDialog(playeridDIALOG_SETTINGSDIALOG_STYLE_TABLIST_HEADERS"{FF0000}Your IG- Settings",
    
"Setting \tWhat it means?\n\
    UI Settings\t{4286f4}Used to hide/show textdraws.\n\
    Disable Duel\t{4286f4}Used to disable invitations.\n\
    PM Settings\t{4286f4}Used to disable PM's.\n\
    Points Settings\t{4286f4}Used to disable others to send points.\n\
    Skin Settings\t{4286f4}Used to set, and save skin."
,
    
"Select""Leave");
}

D:\Games and Apps\SA-MP LSDM Project\LS DM\gamemodes\DBv1.pwn(2415 -- 2422) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Something on the code

if i delete

PHP код:
case 1:disableduelinvite(playerid); 
it compiles without errors..
Reply
#2

Fixed..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)