27.02.2013, 21:48
Yea, sscanf is included.. and sure
PS: Don't judge me so high, i'm noob :P
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
new receiver;
if(sscanf(params, "u", receiver)) return SendClientMessage(playerid, -1, " ");
if(IsPlayerConnected(receiver) && receiver != INVALID_PLAYER_ID)
{
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;
}