Y_INI 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: Y_INI problem (
/showthread.php?tid=599537)
Y_INI problem -
Jabern - 27.01.2016
Hi all , i create a little gamemode from A to Z so i use Y_INI beaucause Mysql is little hard for me so i create a vehicle system and i have this error :
PHP код:
C:\Users\Jaber\Desktop\Lmc fun time\gamemodes\lmc.pwn(179) : error 035: argument type mismatch (argument 1)
C:\Users\Jaber\Desktop\Lmc fun time\gamemodes\lmc.pwn(180) : error 035: argument type mismatch (argument 1)
C:\Users\Jaber\Desktop\Lmc fun time\gamemodes\lmc.pwn(181) : error 035: argument type mismatch (argument 1)
C:\Users\Jaber\Desktop\Lmc fun time\gamemodes\lmc.pwn(182) : error 035: argument type mismatch (argument 1)
C:\Users\Jaber\Desktop\Lmc fun time\gamemodes\lmc.pwn(183) : error 035: argument type mismatch (argument 1)
C:\Users\Jaber\Desktop\Lmc fun time\gamemodes\lmc.pwn(184) : error 035: argument type mismatch (argument 1)
C:\Users\Jaber\Desktop\Lmc fun time\gamemodes\lmc.pwn(185) : error 035: argument type mismatch (argument 1)
C:\Users\Jaber\Desktop\Lmc fun time\gamemodes\lmc.pwn(186) : error 035: argument type mismatch (argument 1)
This is the code :
PHP код:
INI_WriteInt("ModelID", gVehicleStats[i][ModelID]);
INI_WriteInt("Color1", gVehicleStats[i][Color1]);
INI_WriteInt("Color2", gVehicleStats[i][Color2]);
INI_WriteFloat("ParkX", gVehicleStats[i][ParkX]);
INI_WriteFloat("ParkY", gVehicleStats[i][ParkY]);
INI_WriteFloat("ParkZ", gVehicleStats[i][ParkZ]);
INI_WriteFloat("ParkAng", gVehicleStats[i][ParkAng]);
INI_WriteString("Plate", gVehicleStats[i][Plate]);
a litle help please t'y
Re: Y_INI problem -
Jabern - 27.01.2016
Resolved
PHP код:
INI_WriteInt(handle,"ModelID", gVehicleStats[i][ModelID]);
INI_WriteInt(handle,"Color1", gVehicleStats[i][Color1]);
INI_WriteInt(handle,"Color2", gVehicleStats[i][Color2]);
INI_WriteFloat(handle,"ParkX", gVehicleStats[i][ParkX]);
INI_WriteFloat(handle,"ParkY", gVehicleStats[i][ParkY]);
INI_WriteFloat(handle,"ParkZ", gVehicleStats[i][ParkZ]);
INI_WriteFloat(handle,"ParkAng", gVehicleStats[i][ParkAng]);
INI_WriteString(handle,"Plate", gVehicleStats[i][Plate]);