Guten Tag Breadfish,
Ich bin derzeit an einem DMScript dran mit Mysql jedoch ließt er die Skinid nicht aus und sette die oder spawnt denn jenigen mit der skin ID nicht.
Code:
Code
public OnPlayerRequestClass(playerid, classid)
{
if(sInfo[playerid][skinid] == 0){
SetPlayerPos(playerid,613.1426,-597.3813,17.2330);
SetPlayerCameraPos(playerid, 617.6475,-596.9102,17.2330);
SetPlayerCameraLookAt(playerid, 613.1426,-597.3813,17.2330);
SetPlayerFacingAngle(playerid,269.7734);
return 1;
}else{
SetTimerEx("PlayerSpawn",1,false,"i",playerid);
}
return 1;
}
// Login-Speicherung //
savePlayer(playerid)
{
if(sInfo[playerid][eingeloggt]==0)return 1;
//Speichern level,money,alevel,skinid
new query[128];
format(query,sizeof(query),"UPDATE user SET level='%i',money='%i',alevel='%i',skinid='%i' WHERE id='%i'",sInfo[playerid][level],GetPlayerMoney(playerid),sInfo[playerid][alevel],sInfo[playerid][skinid],sInfo[playerid][id]);
mysql_function_query(dbhandle,query,false,"","");
return 1;
}
// Abfrage beim Connecten btw Passwort richtig//
sInfo[playerid][eingeloggt] = 1;
sInfo[playerid][level] = cache_get_field_content_int(0,"level",dbhandle);
SetPlayerScore(playerid,sInfo[playerid][level]);
sInfo[playerid][id] = cache_get_field_content_int(0,"id",dbhandle);
SetPlayerMoney(playerid,cache_get_field_content_int(0,"money",dbhandle));
sInfo[playerid][alevel] = cache_get_field_content_int(0,"alevel",dbhandle);
sInfo[playerid][skinid] = cache_get_field_content_int(0,"skinid",dbhandle);
Alles anzeigen
Ich bitte um hilfe^^