Dini / Fexist issues. - 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: Dini / Fexist issues. (
/showthread.php?tid=335555)
Dini / Fexist issues. -
...: 1 :... - 18.04.2012
I've started making a car system, and I use a stock for buying a car.
I'm kinda new to using DINI, too :C
pawn Код:
stock BuyVehicle(playerid, vehicleid) {
new
file, // Warning line.
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
if(vehicleid == Car1 || vehicleid == Car2 || vehicleid == Car3 || vehicleid == Car4 || vehicleid == Car5) {
format(file, sizeof(file), "%s.ini", name); //Error line
if(fexist(file)) // Error line
dini_IntSet(file, "PlayerVehicle", vehicleid); // Error line
}
return 1;
}
Here are the errors I get.
pawn Код:
C:\Users\Jack\Desktop\Server\CarFS.pwn(44) : error 035: argument type mismatch (argument 1)
C:\Users\Jack\Desktop\Server\CarFS.pwn(44) : error 035: argument type mismatch (argument 1)
C:\Users\Jack\Desktop\Server\CarFS.pwn(46) : error 035: argument type mismatch (argument 1)
C:\Users\Jack\Desktop\Server\CarFS.pwn(47) : error 035: argument type mismatch (argument 1)
C:\Users\Jack\Desktop\Server\CarFS.pwn(38) : warning 203: symbol is never used: "file"
Re: Dini / Fexist issues. -
Shetch - 18.04.2012
Use:
Код:
if(dini_Exists(file))
Re: Dini / Fexist issues. -
...: 1 :... - 18.04.2012
Quote:
Originally Posted by Shetch
Use:
Код:
if(dini_Exists(file))
|
Done nothing.