Quote:
Originally Posted by cj101
this is awesome, im goona use it!
pawn Код:
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"));
um... what the hell is the Field (Username is for).. when im creating the database, i added the table (users), and there i add all the stats like deaths, kills, but what is the field?
:/
|
Notice the query inside the function, it updates the value, when someone's 'Username' field is the first parameter, which in your case is name.