SA-MP Forums Archive
password - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: password (/showthread.php?tid=426806)



password - Fernado Samuel - 30.03.2013

Removed, Thanks


Re: password - Harti - 30.03.2013

Which MySQL plugin do you use? Which version?


Re: password - Fernado Samuel - 30.03.2013

Removed


Re: password - Patrick - 30.03.2013

Quote:
Originally Posted by Fernado Samuel
Scripting MySQL for $
Just PM me if you need me.
Hmmmm?

@Topic you need to UPDATE players data for that

EXAMPLE
pawn Код:
new pName[24];
GetPlayerName(playerid,pName,sizeof(pName));
format(Query, sizeof(Query), "UPDATE `users` SET `Password` = '%s' WHERE Username = '%s';",params,pName);
mysql_query(Query);



Re: password - Fernado Samuel - 30.03.2013

Removed


Re: password - Ironboy - 30.03.2013

Quote:
Originally Posted by Fernado Samuel
Посмотреть сообщение
It is saving only numbers for example if i type /mypass fuck >> then it wont save and if i type /mypass 12345 >
then it will save.
Use this
pawn Код:
format(Query, sizeof(Query), "UPDATE `users` SET `Password` = SHA1('%s') WHERE Username = '%s'",params,pName);