Error 029: Invalid Expression, Assumed Zero
#1

Hi,

So, I've been getting this error 029 for a while now, and this it's about to drive me insane.

I use multiple .pwns, and then include them into the main .pwn. I'm trying to access AccountOnDialogResponse from Account.pwn from the main .pwn's OnDialogResponse, but its giving me an error.

Account.pwn's function
Код:
forward AccountOnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
public AccountOnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	return 1;
}
Main.pwn's function
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    AccountOnDialogResponse(playerid, dialogid, response, listitem, inputtext[]); // This is line 38(The line thats giving me the error)
	return 1;
}
Account.pwn include(At the top of Main.pwn)
Код:
#include "Scripts\Account.pwn"
Error
Код:
C:\Users\User\Desktop\SAMP\gamemodes\Main.pwn(38) : error 029: invalid expression, assumed zero
Even when there's code inside of AccountOnDialogResponse, I still get the error.
Reply
#2

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    AccountOnDialogResponse(playerid, dialogid, response, listitem, inputtext);
    return 1;
}
Reply
#3

Fixed the error! Thanks so much. rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)