Number of arguments does not match definition - 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: Number of arguments does not match definition (
/showthread.php?tid=341410)
Number of arguments does not match definition -
Jstylezzz - 10.05.2012
Hi everyone, I finally converted my scratch garage system
Little problem though, i get a Number of arguments does not match definition warning...
pawn Код:
format(GI[i][O],32,"%s",INI_ReadString("O"));
Anyone knows what's wrong??
Re: Number of arguments does not match definition -
ViniBorn - 10.05.2012
INI_ReadString not have two parameters?
Re: Number of arguments does not match definition -
Jstylezzz - 10.05.2012
hmm... like how?
Re: Number of arguments does not match definition -
ViniBorn - 10.05.2012
INI_ReadString(dest[], const key[], maxlength = sizeof(dest));
Re: Number of arguments does not match definition -
Jstylezzz - 10.05.2012
Quote:
Originally Posted by Viniborn
INI_ReadString(dest[], const key[], maxlength = sizeof(dest));
|
Could you use this in an example format for me
Sry, i'm not sure how to do this.
Re: Number of arguments does not match definition -
Jstylezzz - 10.05.2012
Quote:
Originally Posted by ******
Why are you even trying to format that string? Your format consists entirely of "%s" making it pointless!
|
Thanks again ******, you cleared up my mind

I removed it, and now it compiles without warnings, and works aswell in-game