07.07.2010, 12:39
Quote:
Lol, Simon. Making my day and shit.
![]() ![]() |
pawn Код:
stock CreateAccount(_name[], Password__[], Email[]) {
new hash[60], formated[128];
strmid(hash, Password__, 0, strlen(Password__), sizeof hash);
strins(hash, _name, 0, sizeof hash);
for(new s; s < strlen(hash); s++) hash[s] = tolower(hash[s]);
format(formated, 128, "INSERT INTO %s (realName, passwd, emailAddress, memberName) VALUES('%s', sha1('%s'), '%s', '%s')", MEMBERTABLE, _name,hash, Email, _name);
mysql_query(formated, -1, -1, SMFConnection);
}
PS: Insert this into the CSMF, it will bring no errors that way.