plese helpp
#1

Код:
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);
Reply
#2

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)