Hallo,
wollte das Leben speichern von den Usern habe es so gemacht, aber es speichert nicht!
Im Enum
Float: SHealthh
Unter OnPlayerConnect
PlayerInfo[playerid][SHealthh] = 100.0;
Unter OnPlayerDisconnect
new Float:Leben;
PlayerInfo[playerid][SHealthh] = GetPlayerHealth(playerid, Leben);
OnPlayerSpawn
SetPlayerHealth(playerid, PlayerInfo[playerid][SHealthh]);
OnPlayerRegister
format(var, 32, "SHealthh=%d\n",PlayerInfo[playerid][SHealthh]);fwrite(hFile, var);
OnPlayerUpdate
format(var, 32, "SHealthh=%d\n",PlayerInfo[playerid][SHealthh]);fwrite(hFile, var);
OnPlayerLogin
if( strcmp( key , "SHealthh", true ) == 0 ) { val = ini_GetValue ( Data ); PlayerInfo[playerid][SHealthh] = strval ( val ); }
Wieso speichert der mein Leben nicht??
Bitte um Hilfe!!