number of arguments does not match definition
#1

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

Reply
#2

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)