SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/12/2014, 02:37 PM   #1
Lirbo
Gangsta
 
Lirbo's Avatar
 
Join Date: Jan 2014
Posts: 504
Reputation: 8
Default C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1)

new TN = DOF2_GetInt(TeleportsCount(playerid),"Count");
DOF2_CreateFile(TN);



C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1)
Lirbo is offline   Reply With Quote
Old 12/12/2014, 02:50 PM   #2
Raweresh
Big Clucker
 
Join Date: Jul 2014
Posts: 191
Reputation: 16
Default Re: C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1)

You can't create file like that, you must give string.
Code:
new String[/*MAXIMAL LENGTH OF DOF2_GetInt(TeleportsCount(playerid),"Count");*/];
format(String,sizeof(String),"%i",TN);
DOF2_CreateFile(String);
Raweresh is offline   Reply With Quote
Old 12/12/2014, 02:51 PM   #3
Lirbo
Gangsta
 
Lirbo's Avatar
 
Join Date: Jan 2014
Posts: 504
Reputation: 8
Default Re: C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1)

Thanks mate.
Lirbo 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 35: Argument Type Mismatch (argument 2) Forbidden Name System Stoyanov Scripting Help 2 01/11/2014 08:50 PM
samp error 035: argument type mismatch (argument 2) Arnold_Collins Scripting Help 8 23/12/2013 10:21 AM
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 10:46 PM.


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