SA-MP Forums Archive
Some Errors With INI_String In Y_INI - 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: Some Errors With INI_String In Y_INI (/showthread.php?tid=537146)



Some Errors With INI_String In Y_INI - Ahmad45123 - 13.09.2014

pawn Код:
INI_String("MarriedTo" , PlayerInfo[playerid][pMarriedTo], sizeof(PlayerInfo[playerid][pMarriedTo]));
I get these errors :
Quote:

Main.pwn(1883 : error 001: expected token: "]", but found "-identifier-"
Main.pwn(1883 : warning 215: expression has no effect
Main.pwn(1883 : error 001: expected token: ";", but found "]"
Main.pwn(1883 : error 029: invalid expression, assumed zero

Everything seem good to me.....


Re: Some Errors With INI_String In Y_INI - MikeEd - 13.09.2014

Show the code above this line.


Re: Some Errors With INI_String In Y_INI - Ahmad45123 - 13.09.2014

I found the problem... It was using sizeof in enums.... Thanks anyways.


Re: Some Errors With INI_String In Y_INI - MikeEd - 13.09.2014

Glad you figured it out!