I don't know how to fix this.
#1

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?
Reply
#2

when you are using a string you must use Format
Reply
#3

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;
}
Reply
#4

Thanks, it's fixed. +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)