Strval, Floatstr and for text?
#8

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
I guess keep it that way?
pinfo[playerid][name] is already a string
Ok.. i use this to take data from mysql and store in a variable like an INTEGER

Код:
    new variable[128];
    new query[128];
    new pnombre[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pnombre, sizeof(pnombre));
    format(query, sizeof(query), "SELECT %s FROM `jugadores` WHERE nombre='%s'", var, pnombre);
    mysql_query(query);
    mysql_store_result();
    mysql_fetch_row(variable);
    mysql_free_result();
    if(strcmp(var, "id", true) == 0)
    {
        pinfo[playerid][id] = strval(variable);
    }
but if i dont need to convert anything i se te mysql_fetch_row with the variablee direct??!.. example mysql_fetch_row(pinfo[playerid][name])
Reply


Messages In This Thread
Strval, Floatstr and for text? - by Zafire1410 - 05.08.2010, 20:34
Re: Strval, Floatstr and for text? - by Kar - 05.08.2010, 20:36
Re: Strval, Floatstr and for text? - by Hiddos - 05.08.2010, 20:39
Re: Strval, Floatstr and for text? - by Sergei - 05.08.2010, 20:40
Re: Strval, Floatstr and for text? - by Kar - 05.08.2010, 20:43
Re: Strval, Floatstr and for text? - by Zafire1410 - 05.08.2010, 20:43
Re: Strval, Floatstr and for text? - by Hiddos - 05.08.2010, 20:45
Re: Strval, Floatstr and for text? - by Zafire1410 - 05.08.2010, 20:47
Re: Strval, Floatstr and for text? - by Zafire1410 - 05.08.2010, 20:53

Forum Jump:


Users browsing this thread: 2 Guest(s)