SA-MP Forums Archive
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=445206)



number of arguments does not match definition - Immortal_LTU - 20.06.2013

Hello i got warning

Quote:

number of arguments does not match definition

line :

Quote:

GetPlayerName(playerid, pname, 24);

All script

Quote:

public OnPlayerText(playerid, text[]) {
new pname[24], str[200];
GetPlayerName(playerid, pname, 24);
format(str, sizeof(str), "%s Sako: %s", pname, text);
ProxDetector(10.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
return true;
}




Re: number of arguments does not match definition - Vince - 20.06.2013

Are you sure it's not referring to a different file? As far as I can see this looks correct (apart from the horrid identation).