11.06.2015, 01:55
If you're trying to get a numeric value from the input text, use strval
PHP код:
if(dialogid == selectskin)
{
if(response)
{
if(strval(inputtext) <= 100)
{
new string[128], Query[256];
format(string, sizeof(string), "You have chosen skin %d.", strval(inputtext));
SendClientMessage(playerid, -1, string);
format(Query, sizeof(Query), "UPDATE users SET skin = %d WHERE username = '%s'", pInfo[playerid][USER_SKIN], DB_Escape(pInfo[playerid][USER_NAME]));
db_query(Database, Query);
}
}
}