30.01.2012, 02:06
pawn Код:
public OnPlayerRegister(playerid,key[])
{
printf("playerid: %i - Passwort: %s",playerid,key);
new Name[MAX_PLAYER_NAME], Query[500], escname[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof Name);
mysql_real_escape_string(Name,escname);
format(Query,sizeof Query,"INSERT INTO `Accounts` \
(Nickname, \
Passwort, \
Admin, \
Level, \
Respect, \
Geld, \
Handy, \
HandyGeld, \
Fraktion, \
Leader, \
Alter, \
Geschlecht, \
Muted, \
Freezed, \
Tutorial) \
VALUES \
('%s',\
'%s',\
'0',\
'1',\
'0',\
'20000',\
'1',\
'50',\
'0',\
'0',\
'0',\
'0',\
'0',\
'0',\
'0')",escname,key);
printf("%s",Query);
mysql_query(Query);