[help] 1 line of y_ini to MySQL - 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: [help] 1 line of y_ini to MySQL (
/showthread.php?tid=466418)
[help] 1 line of y_ini to MySQL -
jose005 - 27.09.2013
PLease help me, Codes:
pawn Код:
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Cash", strval( val )); }
TO:
pawn Код:
PlayerInfo[playerid][pCash] = MySQL_GetAccountInt(PlayerName(playerid), "Money");
i need add
Код:
SetPVarInt(playerid, "Cash"
in the script of mysql
Respuesta: [help] 1 line of y_ini to MySQL -
jose005 - 27.09.2013
Help please
Re: [help] 1 line of y_ini to MySQL -
Konstantinos - 27.09.2013
Maybe explain better what you want to do?
Respuesta: [help] 1 line of y_ini to MySQL -
jose005 - 28.09.2013
link this:
pawn Код:
PlayerInfo[playerid][pCash] = MySQL_GetAccountInt(PlayerName(playerid), "Money");
with this:
pawn Код:
SetPVarInt(playerid, "Cash"
so:
pawn Код:
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Cash", strval( val ));
but in mysql
Respuesta: [help] 1 line of y_ini to MySQL -
jose005 - 28.09.2013
HELP D: