04.01.2017, 16:16
PHP код:
case 3: // clan
{
ShowPlayerDialog(playerid, 65, DIALOG_STYLE_INPUT, "{17a005}Clan", "{ffffff}Please enter the {17a005}clan {ffffff}in order to change it", "Select", "Cancel");
myStrcpy(wat, "Clan");
//return 1;
}
//===================================//
if(dialogid == 65)
{
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "You cancelled the dialog!");
}
else
{
if(strlen(inputtext))
{
new iPlayer;
PlayerInfo[iPlayer][clan] = strval(inputtext);
new string[ 64 ];
format(string, sizeof(string), "INFO: Player Clan changed to {3BB9FF}%s.",strval(inputtext));
SendClientMessage(playerid, -1, string);
}
}
return 1;
}