Mysql loading errors
#1

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"
Reply
#2

It's debug message, not error
Reply
#3

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");
Reply
#4

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");
Reply
#5

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)