Error 029: Invalid Expression, Assumed Zero - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error 029: Invalid Expression, Assumed Zero (
/showthread.php?tid=493579)
Error 029: Invalid Expression, Assumed Zero -
SnowIW - 09.02.2014
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.
Re: Error 029: Invalid Expression, Assumed Zero -
Threshold - 09.02.2014
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
AccountOnDialogResponse(playerid, dialogid, response, listitem, inputtext);
return 1;
}
Re: Error 029: Invalid Expression, Assumed Zero -
SnowIW - 09.02.2014
Fixed the error! Thanks so much. rep+