Mysql loading errors - 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: Mysql loading errors (
/showthread.php?tid=574871)
Mysql loading errors -
SandKing94 - 21.05.2015
Code:
Код:
cache_get_field_content_int(0,"Admin",pInfo[playerid][Admin]);
cache_get_field_content_int(0,"Money",pInfo[playerid][Money]);
cache_get_field_content_int(0,"Skin",pInfo[playerid][Skin]);
Errors:
Код:
[14:21:39] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Admin", connection: 0
[14:21:39] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Admin", data: "0"
[14:21:39] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Money", connection: 0
[14:21:39] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Money", data: "0"
[14:21:39] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Skin", connection: 0
[14:21:39] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Skin", data: "0"
Re: Mysql loading errors -
rickisme - 21.05.2015
It's debug message, not error
Re: Mysql loading errors -
MikE1990 - 21.05.2015
Try this
Код:
pInfo[playerid][Admin] = cache_get_field_content_int(0,"Admin");
pInfo[playerid][Money] = cache_get_field_content_int(0,"Money");
pInfo[playerid][Skin] = cache_get_field_content_int(0,"Skin");
Re: Mysql loading errors -
Konstantinos - 21.05.2015
It returns the value. You passed the variable as argument and the 3rd parameter is the connection handle so you set it to 0.
pawn Код:
pInfo[playerid][Admin] = cache_get_field_content_int(0, "Admin");
pInfo[playerid][Money] = cache_get_field_content_int(0, "Money");
pInfo[playerid][Skin] = cache_get_field_content_int(0, "Skin");
Re: Mysql loading errors -
SandKing94 - 21.05.2015
Thanks