Help. C-MySQL + GStylezzz .. not loading. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help. C-MySQL + GStylezzz .. not loading. (
/showthread.php?tid=217332)
Help. C-MySQL + GStylezzz .. not loading. -
1337connor - 27.01.2011
pawn Код:
new query[128];
format(query,sizeof(query),"SELECT * FROM Players WHERE username='%s' AND password=MD5('%s')",PlayerName(playerid),inputtext);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows() != 0)
{
mysql_free_result();
Stats[playerid][admin] = CMySQL_Int(PlayerName(playerid),"admin");
new string[128];
format(string,sizeof(string),"You have logged in as a level "#COL_YELLOW"%i "#COL_WHITE"admin",Stats[playerid][admin]);
Stats[playerid][money] = CMySQL_Int(PlayerName(playerid),"money");
Stats[playerid][LastX] = CMySQL_Float(PlayerName(playerid),"LastX");
printf("%f",Stats[playerid][LastX]);
Stats[playerid][LastY] = CMySQL_Float(PlayerName(playerid),"LastY");
Stats[playerid][LastZ] = CMySQL_Float(PlayerName(playerid),"LastZ");
GivePlayerMoney(playerid,Stats[playerid][money]);
SendClientMessage(playerid,COLOR_YELLOW,"Thank you for logging in!");
}
Won't load into Stats[playerid] .. ANY Help?!
Re: Help. C-MySQL + GStylezzz .. not loading. -
PeteShag - 27.01.2011
Wrong plugin.
https://sampforum.blast.hk/showthread.php?tid=122983
Re: Help. C-MySQL + GStylezzz .. not loading. -
DRIFT_HUNTER - 27.01.2011
My suggestions:
1.Dont use StrickenKid plugin
2.C-Mysql is not optimistic solution (it use to much memory and server might lag)