24.05.2014, 21:28
Hello there im trying to convert my gamemode to mysql, but i cant understand at all how things works, as i saw on tutorials it should be like this:
if anyone can correct me or tell me easier way would be greate.
regards.
Код:
dini_Set(file, "IP", PlayerInfo[playerid][pIP]); dini_IntSet(file, "Gender", PlayerInfo[playerid][pGender]);// Old sys format(string,sizeof(string),"INSERT INTO `user` (IP, gender) VALUES ('%s', '%s')",PlayerInfo[playerid][pIP], PlayerInfo[playerid][pGender]);// converted mysql_query(string); dini_IntSet(file, "Level", PlayerInfo[playerid][pLevel]); dini_IntSet(file, "Minutes", PlayerInfo[playerid][pMinutes]);// Old sys format(string,sizeof(string),"INSERT INTO `user` (level, minutes) VALUES ('%s', '%s')",PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pMinutes]);// converted mysql_query(string); dini_IntSet(file, "Hours", PlayerInfo[playerid][pHours]);// Old sys dini_IntSet(file, "Age", PlayerInfo[playerid][pAge]); format(string,sizeof(string),"INSERT INTO `user` (hours, age) VALUES ('%s', '%s')",PlayerInfo[playerid][pHours], PlayerInfo[playerid][pAge]);// converted mysql_query(string);
regards.