CMD:credits(playerid)
{
new string[128];
format(string,sizeof(string),"Credits for this server is dedicated to RieTzz.\n And Ron for his helping and support!");
ShowPlayerDialog(playerid,154,DIALOG_STYLE_MSGBOX,"Credits:",string,"Thanks","Cancel");
format(string,sizeof(string), "%s has thanked for this server!",pName(playerid));
if(!response){
SendClientMessageToAll(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
CMD:credits(playerid)
{
new string[128];
format(string,sizeof(string),"Credits for this server is dedicated to RieTzz.\n And Ron for his helping and support!");
ShowPlayerDialog(playerid,154,DIALOG_STYLE_MSGBOX,"Credits:",string,"Thanks","Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 154: //MUST be the dialogid you used in the command above (second argument)
{
if (response) {
format(string,sizeof(string), "%s has thanked for this server!",pName(playerid));
SendClientMessageToAll(playerid,COLOR_LIGHTBLUE,string);
}
}
}
return 1;
}
G:\Server info\Mein - Kopia\gamemodes\gys.pwn(399) : error 035: argument type mismatch (argument 2)
if(dialogid == 154)
{
if(response)
{
new string[128];
format(string,sizeof(string), "%s has thanked for this server!",pName(playerid));
SendClientMessageToAll(playerid,COLOR_LIGHTBLUE,string);
return 1;
}
}
G:\Server info\Mein - Kopia\gamemodes\gys.pwn(399) : error 035: argument type mismatch (argument 2)
if(dialogid == 154)
{
if(response)
{
new string[128];
format(string,sizeof(string), "%s has thanked for this server!",pName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE,string); //SendClientMessageToAll it doesnt use PlayerID
return 1;
}
}
|
I did that, and I got these error line
pawn Код:
pawn Код:
|
if(dialogid == 154)
{
if(response)
{
new string[128];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
format(string,sizeof(string), "%s has thanked for this server!",PlayerName);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
return 1;
}
}
