06.03.2012, 13:10
As the title says.
pawn Код:
if(strcmp(cmd, "/clothes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_DARKGREY, " You're not logged in yet.");
return 1;
}
if(PlayerToPoint(6.0, playerid, 2104.1123,2257.2759,11.0234))
{
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Binco", "Type the ID of the skin you want below.", "Change", "Close" );
}
else
{
SendClientMessage(playerid, COLOR_DARKGREY, " You're not at a clothing store or at the faction spawn.");
}
}
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 6:
{
if(!response)
{
return 1;
}
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Binco", "Type the ID of the skin you want below.", "Change", "Close" );
}
else
{
SetPlayerSkin(playerid, inputtext); // argument type mismatch (argument 2)
}
}
}
return 0;
}