SA-MP Forums Archive
How to fix error 028 - 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: How to fix error 028 (/showthread.php?tid=436443)



How to fix error 028 - radiobizza - 11.05.2013

How ti fix this error:
PHP код:
modes\gm5.pwn(8962) : error 028invalid subscript (not an array or too many subscripts): "name" 
And the line:
PHP код:
OnPlayerUpdateEx(playeridname[], value[]); 



AW: How to fix error 028 - Blackazur - 11.05.2013

Because its so:

public OnPlayerUpdate(playerid)

or make

public OnPlayerUpdateEx(playerid, name[], value[]);


Re: AW: How to fix error 028 - radiobizza - 11.05.2013

Quote:
Originally Posted by Blackazur
Посмотреть сообщение
Because its so:

public OnPlayerUpdate(playerid)

or make

public OnPlayerUpdateEx(playerid, name[], value[]);
I have forward and the callbakc OnPlayerUpdateEx...and he show me the error...


AW: How to fix error 028 - Blackazur - 11.05.2013

Can you show us the complete code with onplayerupdateex?


Re: How to fix error 028 - newbienoob - 11.05.2013

Try change name[] to name1[]