SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/05/2014, 06:36 PM   #1
IGeorge
Little Clucker
 
Join Date: Apr 2014
Posts: 7
Reputation: 3
Exclamation rror 035: argument type mismatch (argument 3)

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
}
IGeorge is offline   Reply With Quote
Old 05/05/2014, 06:46 PM   #2
KillerStrike23
Huge Clucker
 
Join Date: Apr 2014
Location: Am In Heaven but you can contact me
Posts: 285
Reputation: 1
Default Re: rror 035: argument type mismatch (argument 3)

dude show the full code or edit GivePlayerWeapon(playerid, weaponid, ammo); whats wrong with ya people check samp wiki
__________________
66.225.195.163:7780
Am trying to be creative 10 slots for a server testing is better than showing yourself for 100 slots .... if you are a girl and you are pro at being an administrator, If you have the privilege contact me and you'll get the chance. singed by StreetFighter
KillerStrike23 is offline   Reply With Quote
Old 05/05/2014, 06:50 PM   #3
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: rror 035: argument type mismatch (argument 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.
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 05/05/2014, 07:00 PM   #4
IGeorge
Little Clucker
 
Join Date: Apr 2014
Posts: 7
Reputation: 3
Default Re: rror 035: argument type mismatch (argument 3)

No offense but can not do. . Could you give an example. .?
IGeorge is offline   Reply With Quote
Old 05/05/2014, 07:01 PM   #5
Konstantinos
Spam Machine
 
Konstantinos's Avatar
 
Join Date: Dec 2011
Posts: 11,828
Reputation: 1401
Default Re: rror 035: argument type mismatch (argument 3)

Only if what I said above is true will work:
pawn Code:
GivePlayerWeapon(playerid, 14, strval(inputtext));
__________________
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 05/05/2014, 07:32 PM   #6
IGeorge
Little Clucker
 
Join Date: Apr 2014
Posts: 7
Reputation: 3
Default Re: rror 035: argument type mismatch (argument 3)

Thank you !
IGeorge is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 035: argument type mismatch (argument 2) Time Slicebook Scripting Help 3 09/04/2014 05:13 PM
error 035: argument type mismatch (argument 2) [Using MySQL R7/R8 With Cache] viveka27 Scripting Help 1 21/05/2013 03:31 PM
How problem! (error 035: argument type mismatch (argument 2) Please help me some one! Request Scripting Help 0 09/01/2012 04:21 PM


All times are GMT. The time now is 03:32 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.