SA-MP Forums Archive
Help me out with y_ini INI_String problem - 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: Help me out with y_ini INI_String problem (/showthread.php?tid=660328)



Help me out with y_ini INI_String problem - bujase1337 - 31.10.2018

I have no clue on how to fix it. Anyone can help me out?

error line:
Code:
INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate]);
error:
Code:
gamemodes/gamemode.pwn(133) : error 001: expected token: ")", but found "["
gamemodes/gamemode.pwn(133) : warning 215: expression has no effect
gamemodes/gamemode.pwn(133) : error 001: expected token: ";", but found "]"
gamemodes/gamemode.pwn(133) : error 029: invalid expression, assumed zero
gamemodes/gamemode.pwn(133) : fatal error 107: too many error messages on one line



Re: Help me out with y_ini INI_String problem - UFF - 31.10.2018

INI_String in y_ini:
pawn Code:
INI_String(name[], variable , length );
Put the length parameter of the pVehicle1Plate.


Re: Help me out with y_ini INI_String problem - TheToretto - 31.10.2018

pawn Code:
INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate], 24);



Re: Help me out with y_ini INI_String problem - bujase1337 - 31.10.2018

Quote:
Originally Posted by TheToretto
View Post
pawn Code:
INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate], 24);
Still same error.


Re: Help me out with y_ini INI_String problem - TheToretto - 31.10.2018

Show me in the enumerator PlayerInfo, the line pVehicle1Plate please.


Re: Help me out with y_ini INI_String problem - bujase1337 - 31.10.2018

Quote:
Originally Posted by TheToretto
View Post
Show me in the enumerator PlayerInfo, the line pVehicle1Plate please.
Just this:
Code:
    pVehicle1Plate,



Re: Help me out with y_ini INI_String problem - TheToretto - 31.10.2018

Replace it to:
pawn Code:
pVehicle1Plate[24],
then recompile


Re: Help me out with y_ini INI_String problem - bujase1337 - 31.10.2018

Quote:
Originally Posted by TheToretto
View Post
Replace it to:
pawn Code:
pVehicle1Plate[24],
then recompile
Thank you.