SA-MP Forums Archive
C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1) - 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: C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1) (/showthread.php?tid=550371)



C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1) - Lirbo - 12.12.2014

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)


Re: C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1) - Raweresh - 12.12.2014

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);



Re: C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1) - Lirbo - 12.12.2014

Thanks mate.