02.08.2010, 15:54
pawn Код:
#define SetPlayerUserName(%0, %1) CMySQL_Set(%0, ACCOUNT_TABLE, "Username", "Username", %1);
#define SetPlayerUserName(%0, %1) CMySQL_Set(%0, ACCOUNT_TABLE, "Username", "Username", %1);
CMySQL_SetInt(name,ACCOUNT_TABLE,"Username","Deaths",GetPVarInt(playerid,"Deaths"));
CMySQL_SetInt(name,ACCOUNT_TABLE,"Username","Kills",GetPVarInt(playerid,"Kills"));
CMySQL_SetInt(name,ACCOUNT_TABLE,"Username","AdminLvl",GetPVarInt(playerid,"AdminLvl"));
CMySQL_SetInt(name,ACCOUNT_TABLE,"Username","Color",GetPVarInt(playerid,"Color"));
CMySQL_SetInt(name,ACCOUNT_TABLE,"Username","Skin",GetPVarInt(playerid,"Skin"));
this is awesome, im goona use it!
pawn Код:
:/ |
[03:05:12] MySQL Error (0): Could not execute query. Unknown column 'Name' in 'where clause'. [03:05:12] MySQL Error (0): Function: 'mysql_store_result' called when no prior query executed.. Unknown column 'Name' in 'where clause'.
[12:27:14] [join] CJ101 has joined the server (0:xxx) [12:27:21] MySQL Error (0): Could not execute query. Field 'IPAddress' doesn't have a default value. [12:27:21] MySQL Error (0): Could not execute query. Unknown column 'CJ101' in 'where clause'. [12:28:53] [part] CJ101 has left the server (0:1)
One more thing:
Код:
[03:05:12] MySQL Error (0): Could not execute query. Unknown column 'Name' in 'where clause'. [03:05:12] MySQL Error (0): Function: 'mysql_store_result' called when no prior query executed.. Unknown column 'Name' in 'where clause'. Код:
[12:27:14] [join] CJ101 has joined the server (0:xxx) [12:27:21] MySQL Error (0): Could not execute query. Field 'IPAddress' doesn't have a default value. [12:27:21] MySQL Error (0): Could not execute query. Unknown column 'CJ101' in 'where clause'. [12:28:53] [part] CJ101 has left the server (0:1) |
native CMySQL_SetUserName(name[], AccountTable[], UserFieldName[], Value[]);
native CMySQL_SetBool(Username[], Table[], Field[], FieldValue[], bool:Value);