stock Load_Character(playerid)
{
new Stunde, Minute, Sekunde,Load_Log[128],Float:x,Float:y,Float:z;
new file[128],string[128];
gettime(Stunde, Minute, Sekunde);
format(Load_Log,sizeof(Load_Log),"Load Account: %s %d %d %d",GetName(playerid),Stunde,Minute,Sekunde);
print(Load_Log);
//Account Load
format(file,sizeof(file),"/Accounts/%s.inc",GetName(playerid));
Info[playerid][pAdminLevel] = dini_Int(file,"Admin Level");
Info[playerid][RpPoints] = dini_Int(file,"Roleplay Points");
//Character Load
format(file,sizeof(file),"/Accounts/%s/%s.inc",GetName(playerid),CharacterName[playerid]);
Info[playerid][pMoney] = dini_Int(file,"Money");
for(new i = 0; i<MAX_PRODUCTS;i++)
{
if(Inventar[playerid][Inventar_Daten:i] > 0)
{
format(string,sizeof(string),"%s",InventarName[Inventar_Name:i]);
Inventar[playerid][Inventar_Daten:i] = dini_Float(file,string);
}
}
gettime(Stunde, Minute, Sekunde);
format(Load_Log,sizeof(Load_Log),"%d %d %d Inventar 1 loaded!",Stunde,Minute,Sekunde);
print(Load_Log);
for(new i = 0; i<MAX_NORMALINVENTAR;i++)
{
if(NormalInventar[playerid][NormalInventar_Daten:i] > 0)
{
format(string,sizeof(string),"%s",NormalInventarName[NormalInventar_Name:i]);
NormalInventar[playerid][NormalInventar_Daten:i] = dini_Int(file,string);
}
}
gettime(Stunde, Minute, Sekunde);
format(Load_Log,sizeof(Load_Log),"%d %d %d Inventar 2 loaded!",Stunde,Minute,Sekunde);
print(Load_Log);
for(new i = 0; i<MAX_QUALI; i++)
{
if(IllegalInventar[playerid][Cannabis][i] > 0)
{
format(string,sizeof(string),"Cannabis Qualität: %d%:",i);
IllegalInventar[playerid][Cannabis][i] = dini_Float(file,string);
}
if(IllegalInventar[playerid][CrystalMeth][i] > 0)
{
format(string,sizeof(string),"Crystal Qualität: %d%:",i);
IllegalInventar[playerid][CrystalMeth][i] = dini_Float(file,string);
}
if(IllegalInventar[playerid][Heroin][i] > 0)
{
format(string,sizeof(string),"Heroin Qualität: %d%:",i);
IllegalInventar[playerid][Heroin][i] = dini_Float(file,string);
}
if(IllegalInventar[playerid][Kokain][i] > 0)
{
format(string,sizeof(string),"Kokain Qualität: %d%:",i);
IllegalInventar[playerid][Kokain][i] = dini_Float(file,string);
}
}
gettime(Stunde, Minute, Sekunde);
format(Load_Log,sizeof(Load_Log),"%d %d %d Inventar 3 loaded!",Stunde,Minute,Sekunde);
print(Load_Log);
x = dini_Float(file,"pX");
y = dini_Float(file,"pY");
z = dini_Float(file,"pZ");
SetPlayerPos(playerid,x,y,z);
gettime(Stunde, Minute, Sekunde);
SetCameraBehindPlayer(playerid);
format(Load_Log,sizeof(Load_Log),"%d %d %d Spawn: %s",Stunde,Minute,Sekunde,GetName(playerid));
print(Load_Log);
return 1;
}
Irgendwie kommt 2 mal in der cmd Box:
format(Load_Log,sizeof(Load_Log),"Load Account: %s %d %d %d",GetName(playerid),Stunde,Minute,Sekunde);
print(Load_Log);
Ansonsten nichts und geldaen wird auch nicht.