Need help :( | Offer rep ++, i don't know what to do ...
#1

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?
Reply
#2

Show your PlayerName
Reply
#3

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.
Reply
#4

@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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)