Mysql stats saving problem.
#6

No, that's his problem.


His code:
new name[128],query[256],scores[300];
GetPlayerName(playerid,name,12;

Its getting the player's name, and putting it into the int "name".

Then continuing, with doing nothing with any name's, the query is called:

format(scores,sizeof(scores),"SELECT Scores FROM `"TABLENAME"` WHERE Name = '%s' AND Password = md5('%s') LIMIT 1",vardas,inputtext);

Its put down that the MySQL Name is 'vardas' - but vardas doesnt even exist in this example, so it's getting the name from nowhere.

Replace vardas with name and it should work fine.


=======
To schurman

Shutup, you don't know anything.
Reply


Messages In This Thread
Mysql stats saving problem. - by Vvolk - 07.05.2011, 13:41
Re: Mysql stats saving problem. - by Luis- - 07.05.2011, 13:44
Re: Mysql stats saving problem. - by Pooh7 - 07.05.2011, 13:45
Re: Mysql stats saving problem. - by GamingTurf - 07.05.2011, 13:45
Re: Mysql stats saving problem. - by SchurmanCQC - 07.05.2011, 13:48
Re: Mysql stats saving problem. - by GamingTurf - 07.05.2011, 13:56
Re: Mysql stats saving problem. - by Vvolk - 07.05.2011, 14:01
Re: Mysql stats saving problem. - by Vvolk - 07.05.2011, 14:03
Re: Mysql stats saving problem. - by Calgon - 07.05.2011, 14:21
Re: Mysql stats saving problem. - by MadeMan - 07.05.2011, 14:32

Forum Jump:


Users browsing this thread: 3 Guest(s)