Load float from mysql r40? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Load float from mysql r40? (
/showthread.php?tid=638419)
Load float from mysql r40? -
kloning1 - 31.07.2017
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:
Re: Load float from mysql r40? -
Banditul18 - 31.07.2017
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
Re: Load float from mysql r40? -
kloning1 - 31.07.2017
Quote:
Originally Posted by Banditul18
|
mm, yea, i'm forget. i like to reverse cache_get_value_name_float & cache_get_index_name_float
thanks
Re: Load float from mysql r40? -
ISmokezU - 31.07.2017
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]