error 010: invalid function or declaration
#5

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
That has to come inside the curly brackets of the OnPlayerCommandText callback:
PHP код:
public OnPlayerCommandText(playeridcmdtext[]) {
    if(!
strcmp("/Updates"cmdtexttrue))
    {
        
ShowPlayerDialog(playerid1239DIALOG_STYLE_MSGBOX"Updates""23/03/2016/nNew Objects and /sb command""Done""Done");
        return 
1;
    }
    return 
0;

Also, you can remove the second button of a dialog by leaving the second one empty:
PHP код:
ShowPlayerDialog(playerid1239DIALOG_STYLE_MSGBOX"Updates""....""Done"""); 
Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
Don't copy paste my code. You have to look what I did. I put your code in the OnPlayerCommandText callback.

Error 037 was my fault:
PHP код:
"Done 
Should be
PHP код:
"Done" 
EDIT: You already have OnPlayerCommandText in your gamemode. Just put that command under the existing commands.
Fixed, thank you mate, you did my day
Reply


Messages In This Thread
error 010: invalid function or declaration - by Progamerisrael1 - 23.03.2016, 11:09
Re: error 010: invalid function or declaration - by AndySedeyn - 23.03.2016, 11:54
Re: error 010: invalid function or declaration - by Progamerisrael1 - 23.03.2016, 12:11
Re: error 010: invalid function or declaration - by AndySedeyn - 23.03.2016, 12:13
Re: error 010: invalid function or declaration - by Progamerisrael1 - 23.03.2016, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)