Ja ist ein. bin gerade selber im Script drinnen alles mit mysql verbunden
//E:
PUBLIC:OnPlayerRegister(playerid, password[])
{
StuffInfo[sNeuUser] += 1;
if(IsPlayerConnected(playerid))
{
new string[128],
playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
format(string, sizeof(string), "INSERT INTO `users` (`Name`, `Password`) VALUES ('%s', '%s')", playername, GeneratePassword(password));
self_mysql_queryEx(string);
PlayerInfo[playerid][pSQLID] = mysql_insert_id();
format(string, sizeof(string), "UPDATE `users` SET `RegisterDatum`='%d' WHERE `Name`='%s'", Time(), playername);
self_mysql_queryEx(string);
PlayerInfo[playerid][pChar] = 26;
gOoc[playerid] = 0;
PlayerInfo[playerid][pReg] = 1;
PlayerInfo[playerid][pAlter] = 0;
PlayerInfo[playerid][pTut] = 0;
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pSHealth] = 50.0;
StuffInfo[sLastNumber] += 1;
PlayerInfo[playerid][pNummer] = StuffInfo[sLastNumber];
PlayerInfo[playerid][pBizKey] = -1;
PlayerInfo[playerid][pBank] = 0;
GivePlayerMoneys(playerid, 5000);
PlayerInfo[playerid][pCrimes] = 0;
PlayerInfo[playerid][pArrested] = 0;
PlayerInfo[playerid][pArrestTime] = 0;
PlayerInfo[playerid][pKills] = 0;
PlayerInfo[playerid][psKills] = 0;
PlayerInfo[playerid][pDeaths] = 0;
PlayerInfo[playerid][pMember] = -1;
PlayerInfo[playerid][pLeader] = -1;
PlayerInfo[playerid][pOnDutySkin] = 60;
PlayerInfo[playerid][pPistolSkill] = 2;
PlayerInfo[playerid][pMaschinePistolSkill] = 2;
PlayerInfo[playerid][pSturmgewehrPistolSkill] = 2;
PlayerInfo[playerid][pShotGunSkill] = 1;
/*Scheine*/
PlayerInfo[playerid][pGunLic] = 0;
PlayerInfo[playerid][pFlyLic] = 0;
PlayerInfo[playerid][pCarLic] = 0;
PlayerInfo[playerid][pBikeLic] = 0;
PlayerInfo[playerid][pCPTUT] = 0;
PlayerInfo[playerid][pKHTIME] = 0;
PlayerUpdate(playerid);
}
return 1;
}