Problem with assigning an integer to the query
#2

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(stringsizeof(string), "You have chosen skin %d."strval(inputtext));
            
SendClientMessage(playerid, -1string);
            
format(Querysizeof(Query), "UPDATE users SET skin = %d WHERE username = '%s'"pInfo[playerid][USER_SKIN], DB_Escape(pInfo[playerid][USER_NAME]));
            
db_query(DatabaseQuery);
        }
    }

Reply


Messages In This Thread
Problem with assigning an integer to the query - by DarkLored - 11.06.2015, 01:51
Re: Problem with assigning an integer to the query - by Banana_Ghost - 11.06.2015, 01:55
Re: Problem with assigning an integer to the query - by DarkLored - 11.06.2015, 02:04

Forum Jump:


Users browsing this thread: 1 Guest(s)