SA-MP Forums Archive
plese helpp - 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: plese helpp (/showthread.php?tid=383349)



plese helpp - xplor09edy - 07.10.2012

Код:
C:\Documents and Settings\Administrator\Desktop\xReputation.pwn(68) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
The command:
Код:
CMD:myreputation(playerid,params[])
{
    new string[128], pName[MAX_PLAYER_NAME];
	GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s",pName);
	ShowPlayerDialog(playerid, MYREP, DIALOG_STYLE_MSGBOX, "{00C0FF}Reputation", "{FFFFFF}+++++ {00C0FF}%s's Reputation {FFFFFF}+++++", "Close", "", pName);
	return 1;
}
Line 68:
Код:
ShowPlayerDialog(playerid, MYREP, DIALOG_STYLE_MSGBOX, "{00C0FF}Reputation", "{FFFFFF}+++++ {00C0FF}%s's Reputation {FFFFFF}+++++", "Close", "", pName);



Re: plese helpp - JaKe Elite - 07.10.2012

pawn Код:
ShowPlayerDialog(playerid, MYREP, DIALOG_STYLE_MSGBOX, "{00C0FF}Reputation", string, "Close", "");



Re: plese helpp - xplor09edy - 07.10.2012

Quote:
Originally Posted by Romel
Посмотреть сообщение
pawn Код:
ShowPlayerDialog(playerid, MYREP, DIALOG_STYLE_MSGBOX, "{00C0FF}Reputation", string, "Close", "");
I know to make this but me wanna to show and the player name


Re: plese helpp - JaKe Elite - 07.10.2012

pawn Код:
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string, sizeof string, "{FFFFFF}+++++{00C0FF}%s's Reputation {FFFFFF}+++++", pName);
ShowPlayerDialog(playerid, MYREP, DIALOG_STYLE_MSGBOX, "{00C0FF}Reputation", string, "Close", "", pName);
You format the string.
You show the format in the dialog by using it.