07.05.2011, 13:56
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.
His code:
new name[128],query[256],scores[300];
GetPlayerName(playerid,name,12
![Cool](images/smilies/cool.gif)
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.