rror 035: argument type mismatch (argument 3)
#1

It gives me error error 035: argument type mismatch (argument 3). . Why?

else if(IDArme[playerid] == 14)
{
GivePlayerWeapon(playerid, 14, inputtext); // On donne des fleurs
}
Reply
#2

dude show the full code or edit GivePlayerWeapon(playerid, weaponid, ammo); whats wrong with ya people check samp wiki
Reply
#3

The 3rd argument of the function GivePlayerWeapon is ammo and it's integer. inputtext is string; hence you get the warning. If inputtext holds the ammo, then use strval function to convert a string to an integer.
Reply
#4

No offense but can not do. . Could you give an example. .?
Reply
#5

Only if what I said above is true will work:
pawn Code:
GivePlayerWeapon(playerid, 14, strval(inputtext));
Reply
#6

Thank you !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)