#1

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"));
Reply
#2

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"));
Reply
#3

same errors
Reply
#4

& that ? :

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

GivePlayerWeapon(playerid, weapon, ammo);
Reply
#5

thx bro work +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)