27.02.2013, 21:50
Quote:
|
Yea, sscanf is included.. and sure
pawn Код:
|
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
new receiver;
if( isnull( inputtext ) ) return SendClientMessage(playerid, -1, " ");
if(IsPlayerConnected(receiver)) // Didn't need to check if receiver was invalid, since IsPlayerConnected does that for you.
{
ShowPlayerDialog(playerid, 2 , DIALOG_STYLE_INPUT, "{FF0000}Receiver {FFFFFF}ID.", "{FF0000}Input the player's id you are gonna give score\n {FFFFFF}Tip: Player must be connected.", "Give", "");
}
else
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{FF0000}Player {FFFFFF}is not connected!", "The player id you typed seems not to be online\n use admcommands to see the admin command list again!", "Ok", "");
}
}
}
}
return 1;
}


