SA-MP Forums Archive
help - 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 (/showthread.php?tid=546744)



help - UltraScripter - 17.11.2014

hi im trying to save player weapons and ammo but i get 2 warnings

warning 202: number of arguments does not match definition

warning 202: number of arguments does not match definition

Hare's My Code : !

pawn Код:
GivePlayerWeapon(playerid, dini_Int(File, "Weapons", "Ammo"));



Re : help - Dutheil - 17.11.2014

Next time, look on the wiki

pawn Код:
GivePlayerWeapon(playerid, dini_Int(File, "Weapons"), dini_Int(File, "Ammo"));
dini_Int is used like that :

pawn Код:
new myvar;
myvar = dini_Int("MyFile.txt", "test");
printf("%d", myvar);
or like that :
pawn Код:
printf("%d", dini_Int("MyFile.txt","test"));



Re: help - UltraScripter - 17.11.2014

same errors


Re : help - Dutheil - 17.11.2014

& that ? :

pawn Код:
new weapon = dini_Int(File, "Weapons");
new ammo = dini_Int(File, "Ammo");

GivePlayerWeapon(playerid, weapon, ammo);



Re: help - UltraScripter - 17.11.2014

thx bro work +rep