I put prints to every parts of the script and I can see where the problem is, but I don't know what it is. When you type your password into the login dialog in the OnPlayerConnect and press enter, the server successfully redirects you to OnPlayerLogin and it starts to load your userfile. It stucks and crashes the server at the end of the userfile loading, where it should load the saved names and the phone numbers for your phonebook. The "Before phonebook loaded." print can be seen in the server log, but the "After phonebook loaded." print is not, so the server crashes here. I can see no problems here, can you?
pawn Код:
print("Before phonebook loaded.");
if( strcmp( key , "Konyv1Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv1Nev", val); }
if( strcmp( key , "Konyv1Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv1Szam", strval(val)); }
if( strcmp( key , "Konyv2Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv2Nev", val); }
if( strcmp( key , "Konyv2Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv2Szam", strval(val)); }
if( strcmp( key , "Konyv3Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv3Nev", val); }
if( strcmp( key , "Konyv3Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv3Szam", strval(val)); }
if( strcmp( key , "Konyv4Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv4Nev", val); }
if( strcmp( key , "Konyv4Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv4Szam", strval(val)); }
if( strcmp( key , "Konyv5Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv5Nev", val); }
if( strcmp( key , "Konyv5Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv5Szam", strval(val)); }
if( strcmp( key , "Konyv6Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv6Nev", val); }
if( strcmp( key , "Konyv6Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv6Szam", strval(val)); }
if( strcmp( key , "Konyv7Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv7Nev", val); }
if( strcmp( key , "Konyv7Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv7Szam", strval(val)); }
if( strcmp( key , "Konyv8Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv8Nev", val); }
if( strcmp( key , "Konyv8Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv8Szam", strval(val)); }
if( strcmp( key , "Konyv9Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv9Nev", val); }
if( strcmp( key , "Konyv9Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv9Szam", strval(val)); }
if( strcmp( key , "Konyv10Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv10Nev", val); }
if( strcmp( key , "Konyv10Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv10Szam", strval(val)); }
print("After phonebook loaded.");