24.08.2011, 13:25
Just code like this and you'll get no loose indentation warnings
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1 && response == 1)
{
if(inputtext[0] == '1')
{
SendClientMessage(playerid,0xAA3333AA,"Hydra ispawninta");
AddStaticVehicle(520,-2243,489,74,90,-1,-1);
}
else if(inputtext[0] != '1')
{
SendClientMessage(playerid,0xAA3333AA,"Slaptazodis blogas!");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Koks slapta?odis?", "Koks slapta?odis?", "Spawn", "Atsaukti");
}
}
return 0;
}