[MySQL] Repeating
#8

This is register:
Код:
format(query,sizeof(query),"INSERT INTO users (name, password) VALUES ('%s', '%s')",name,password);
This is update:
Код:
format(query,sizeof(query),"UPDATE users SET name='%s', password='%s', admin=%d, cash=%d, score=%d WHERE SQLid=%d",name,AccountInfo[playerid][Password],AccountInfo[playerid][AdminLevel],AccountInfo[playerid][Cash],AccountInfo[playerid][Score],AccountInfo[playerid][mglvl],AccountInfo[playerid][SQLid]);
This may be usefule GetPlayerSQLid:
Код:
format(query,sizeof(query),"SELECT SQLid FROM users WHERE name='%s'",name);
This is the SQL system I use:
https://sampforum.blast.hk/showthread.php?tid=122983
Reply


Messages In This Thread
[MySQL] Repeating - by ScottCFR - 15.07.2010, 20:02
Re: [MySQL] Repeating - by [HiC]TheKiller - 15.07.2010, 20:07
Re: [MySQL] Repeating - by ScottCFR - 15.07.2010, 20:12
Re: [MySQL] Repeating - by [HiC]TheKiller - 15.07.2010, 20:16
Re: [MySQL] Repeating - by oliverrud - 15.07.2010, 20:17
Re: [MySQL] Repeating - by ScottCFR - 15.07.2010, 20:20
Re: [MySQL] Repeating - by [HiC]TheKiller - 15.07.2010, 20:20
Re: [MySQL] Repeating - by ScottCFR - 15.07.2010, 20:26
Re: [MySQL] Repeating - by [HiC]TheKiller - 15.07.2010, 20:30
Re: [MySQL] Repeating - by WackoX - 16.07.2010, 08:00

Forum Jump:


Users browsing this thread: 5 Guest(s)