06.03.2014, 06:43
For some reason, this script is causing Pawn compiler to crash. What I need it to do is check if the player entered any inputtext, and if the haven't, do this.
pawn Код:
new skin = strval(inputtext);
if(strlen(skin) == 0)
}
SendClientMessage(playerid,COLOR_RED, "ERROR: Please enter a skin ID, or select Cancel.");
ShowPlayerDialog(playerid, SHOP_SKIN, DIALOG_STYLE_INPUT, "Enter a valid Skin ID.", "Enter Skin ID", "OK", "Cancel");
return 1;
}