I don't know how to fix this. - 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: I don't know how to fix this. (
/showthread.php?tid=424960)
I don't know how to fix this. -
LeeXian99 - 24.03.2013
Well, I tried to put this on the script.
pawn Код:
CMD:credits(playerid,params[])
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
ShowPlayerDialog(playerid, 12344, DIALOG_STYLE_MSGBOX, "Credits", "{00ff00}YoWassup{ffffff} - {ff0000}Server scripter, hoster\n{00ff00}EpicExile, Slenderman{ffffff} - {ff0000}Server mappers\n{00ff00}%s - {ffff00}Best Player", "OK", "", name);
return 1;
}
But the error still make the compile success!
Код:
C:\Users\Kelvin\Desktop\Scripting\gamemodes\racerevolution.pwn(4099) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
But when I am in the server...
How to fix this?
Re: I don't know how to fix this. - Patrick - 24.03.2013
when you are using a
string you must use
Format
Re: I don't know how to fix this. -
Apenmeeuw - 24.03.2013
pawn Код:
CMD:credits(playerid,params[])
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{00ff00}YoWassup{ffffff} - {ff0000}Server scripter, hoster\n{00ff00}EpicExile, Slenderman{ffffff} - {ff0000}Server mappers\n{00ff00}%s - {ffff00}Best Player", name);
ShowPlayerDialog(playerid, 12344, DIALOG_STYLE_MSGBOX, "Credits", string, "OK", "");
return 1;
}
Re: I don't know how to fix this. -
LeeXian99 - 24.03.2013
Thanks, it's fixed.

+rep