Hey ich habe gerade mitbekommen das mein Spieler nach dem Registrieren erstellt wird aber aber danach nicht gespeichert wird sprich Level 1 und die 2500$
aber wieso den das ?
else if(sInfo[playerid][tutpart] == 9)
{
sInfo[playerid][tutpart] = 0;
SetPlayerVirtualWorld(playerid,0);
SetSpawnInfo(playerid,0,26,370.3382,-2059.1753,8.6107,359.5793,0,0,0,0,0,0);
SetCameraBehindPlayer(playerid);
SpawnPlayer(playerid);
SetPlayerColor(playerid,0xFF00FFFF);
TogglePlayerControllable(playerid,1);
TogglePlayerSpectating(playerid, 0);
GetPlayerIp(playerid,sInfo[playerid][Ip],16);
new name[MAX_PLAYER_NAME],query[128],passwort[35];
GetPlayerName(playerid,name,sizeof(name));
GetPVarString(playerid, "Passwort",passwort,sizeof(passwort));
format(query,sizeof(query),"INSERT INTO user (username,password) VALUES ('%s','%s') ",name,passwort);
mysql_function_query(dbhandle,query,false,"OnPlayerRegister","d",playerid);
return 1;
}
public OnPlayerRegister(playerid)
{
sInfo[playerid][db_id] = mysql_insert_id();
SetPlayerMoney(playerid, 2500);
SetPlayerScore(playerid, 1);
SetTimerEx("SkinTimer", 200, 0, "dd", playerid, 26);
SetPlayerColor(playerid, 0xFF00FFFF);
savePlayer(playerid);
printf("%s hat sich Registriert!)",getPlayerName(playerid));
return 1;
}