error 002: only a single statement (or expression) can follow each "case"
#1

PHP код:
zma.pwn(2034) : error 002only a single statement (or expressioncan follow each "case"
zma.pwn(2034) : warning 215expression has no effect
zma
.pwn(2035) : warning 209: function "OnDialogResponse" should return a value 
ss scipt

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 253) {
        if(
response) {
            if(
listitem == 0)
            {
                if(
GetPlayerMoney(playerid) > 4050)
                {
                    
GivePlayerMoney(playerid,-4050);
                    
GivePlayerWeapon(playerid,34,40);
                }
                else {
                    
SendClientMessage(playerid, -1""COL_ORANGE"[SERVER]"COL_WHITE" Not enough money.");
                }
            }
            
    return 
1;

Reply
#2

You forgot to close one bracket just before before return.
Reply
#3

Show the whole callback function, please.
Reply
#4

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Show the whole callback function, please.
FOR WHAT DRIFT_HUNTER Outlined what to do.
Reply
#5

thanks all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)