Need help :( | Offer rep ++, i don't know what to do ... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help :( | Offer rep ++, i don't know what to do ... (
/showthread.php?tid=325448)
Need help :( | Offer rep ++, i don't know what to do ... -
Edvin - 13.03.2012
Quote:
[14:12:22] [debug] Server crashed while executing RAS.amx
[14:12:22] [debug] Backtrace (most recent call first):
[14:12:22] [debug] #0 public FC_OnPlayerConnect(playerid=2)+0x3528 at D:\RAS\gamemodes\RAS.pwn:216
[14:12:22] [debug] #1 public Streamer_OnPlayerConnect(playerid=2)+0x3f8c at D:\RAS\gamemodes\RAS.pwn:216
[14:12:22] [debug] #2 public SSCANF_OnPlayerConnect(playerid=2)+0x61c4 at D:\RAS\gamemodes\RAS.pwn:216
[14:12:22] [debug] #3 public Itter_OnPlayerConnect(playerid=2)+0xd55c at D:\RAS\gamemodes\RAS.pwn:216
[14:12:22] [debug] #4 public @receivepacket(playerid=2)+0x11750 at D:\RAS\gamemodes\RAS.pwn:216
|
This gaves me when crashes my server.
The line is:
Quote:
format( file, sizeof( file ), "/ladmin/users/%s.sav", udb_encode( PlayerName( playerid ) ) );
|
What can be the problem?
Re: Need help :( | Offer rep ++, i don't know what to do ... -
Tanush123 - 13.03.2012
Show your PlayerName
Re: Need help :( | Offer rep ++, i don't know what to do ... -
iPLEOMAX - 13.03.2012
One of the three reasons:
1) Maybe the directory: server/scriptfiles/ladmin/users/ does't exist? Check the name and case.
2) Or probably udb_encode returns integers? In that case, use:
format( file, sizeof( file ), "/ladmin/users/%i.sav", udb_encode( PlayerName( playerid ) ) );
3) Hope you are not formatting the "file" itself.
pawn Код:
new File:IO, file[128]; //"file" should be a string.
Re: Need help :( | Offer rep ++, i don't know what to do ... -
Edvin - 13.03.2012
@Tanush123 here are PlayerName( playerid ) function:
Код:
PlayerName( playerid )
{
n[ 24 ];
GetPlayerName( playerid, n, 24 );
return n;
}
@iPELOMAX
1) It exists
2) I don't think, "PlayerName( playerid )" is for the name of player ...
3) I don't understand
Again it crashes ...

It shows me same error ... but I noticed something... the server crashes when a player with ID 2 join the server

... and it shows me that debug like in main post