Load float from mysql r40?
#1

script:
pawn Код:
top:
enum pdat
{
    Float:pPos[3]
}
cache_get_value_index_float(0, "posx", pInfo[playerid][pPos][0]);
cache_get_value_index_float(0, "posy", pInfo[playerid][pPos][1]);
cache_get_value_index_float(0, "posz", pInfo[playerid][pPos][2]);
error:
Reply
#2

https://sampwiki.blast.hk/wiki/MySQL/R40...lue_name_float
This one. For that one you use you need to write the column index not the actual column name
Reply
#3

Quote:
Originally Posted by Banditul18
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/MySQL/R40...lue_name_float
This one. For that one you use you need to write the column index not the actual column name
mm, yea, i'm forget. i like to reverse cache_get_value_name_float & cache_get_index_name_float
thanks
Reply
#4

Also read up on https://sampforum.blast.hk/showthread.php?tid=580289

Go the long way out:

PHP код:
Float:PosX[3],
Float:PosY[3],
Float:PosZ[3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)