Crash Verursacher.

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hihi,


    da ich ein Plugin habe der auflistet warum mein Server sich wieder ausschaltet wollte ich mal fragen, was heißt den diese Errors. Oo


    [11:21:59] [debug] Server crashed while executing brl.amx
    [11:21:59] [debug] Backtrace (most recent call first):
    [11:21:59] [debug] #0 native CallRemoteFunction() from samp-server.exe
    [11:21:59] [debug] #1 0x000002bc()+0x30 from brl.amx
    [11:21:59] [debug] #2 public registerorlogin()+0x60 from brl.amx
    [11:21:59] [debug] #3 public Streamer_OnPlayerConnect()+0x18 from brl.amx
    [11:21:59] [debug] #4 public mintimer()+0x174 from brl.amx
    [11:21:59] [debug] #5 public Streamer_OnGameModeInit()+0x52c8 from brl.amx
    [11:21:59] [debug] #6 native CallLocalFunction() from samp-server.exe
    [11:21:59] [debug] #7 public OnGameModeInit()+0xffffe3bc from brl.amx

  • Nunja, so ganz helfen tut es mir auch nicht ...



    Spoiler anzeigen
    Header size: 8336 bytes
    Code size: 558804 bytes
    Data size: 4922148 bytes
    Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
    Total requirements: 5505672 bytes

  • Wenn ich das mit Debug Starten will sagt er mir das :


    Spoiler anzeigen
    [11:39:05] Script[gamemodes/brl.amx]: Run time error 18: "File is for a newer version of the AMX"
    [11:39:05] Failed to load 'gamemodes/brl.amx' script.


    #1 okd anke, werde mich dann auf die Zeillen Stürzen.
    #2 Kann SAMP kein CallRemoteFunction mehr ?


    stock WBB_IsValidUser ( wbbUsername[ ] )
    return CallRemoteFunction ( "_WBB_IsValidUser" , "s" , wbbUsername );


    Spoiler anzeigen
    [11:46:07] [debug] #0 native CallRemoteFunction() from samp-server.exe
    [11:46:07] [debug] #1 WBB_IsValidUser(wbbUsername[]=@0x004b1b24 "")+0x34 at wbb_connect.inc:32
    [11:46:07] [debug] #2 public registerorlogin(playerid=4922148)+0x64 at brl.pwn:13334
    [11:46:07] [debug] #3 public Streamer_OnPlayerConnect(playerid=4922148)+0x1c at brl.pwn:5615
    [11:46:07] [debug] #4 public mintimer()+0x178 at brl.pwn:12411
    [11:46:07] [debug] #5 public Streamer_OnGameModeInit()+0x224 at brl.pwn:1171
    [11:46:07] [debug] #6 native CallLocalFunction() from samp-server.exe
    [11:46:07] [debug] #7 public OnGameModeInit()+0xffffe378 at wbb_connect.inc:32

    Einmal editiert, zuletzt von GamerXiOS ()

  • Stehe grade mega aufn Schlauch.
    Wie soll ich das Prüfen ?

  • Wie soll ich das im Include überprüfen ? ^^


    Spoiler anzeigen
    // WBB Connect 1.4.0 include by Hauke - 22.10.2011
    #define PAWN_TYPE_ARRAY 1
    #define PAWN_TYPE_INT 2
    #define WBB_USER_POSTS 0x0008
    #define WBB_USER_LAST_VISIT 0x0016
    #define WBB_USER_ACTIVATIO_CODE 0x0032
    #define WBB_USER_ACTIVITY_POINTS 0x0064
    #define WBB_USER_PROFILE_HITS 0x0128
    #define WBB_USER_UNREAD_PM 0x0256

    Spoiler anzeigen
    /* Initializes connection. Must be called first!
    * param: string MySQL Server IP
    * string MySQL User
    * string MySQL Password
    * string MySQL Database
    * [optional] int Installation count of WCF.
    *
    * return: bool true if connected successfully
    * bool false if connection failed
    */
    stock WBB_SetMySQLData ( Server[ ] , User[ ] , Password[ ] , Database[ ] , InstallationCount = 1 )
    return CallRemoteFunction ( "_WBB_SetMySQLData" , "ssssd" , Server , User , Password , Database , InstallationCount );

    Spoiler anzeigen
    /* Checks if username exists
    * param: string Username
    *
    * return: bool true if user exists
    * bool false if don´t exists
    */
    stock WBB_IsValidUser ( wbbUsername[ ] )
    return CallRemoteFunction ( "_WBB_IsValidUser" , "s" , wbbUsername );

    Spoiler anzeigen
    /* Checks if password is equal to account password
    * param: string Username
    * string Password
    *
    * return: bool true if password is correct
    * bool false if password is incorrect
    */
    stock WBB_CheckPassword ( wbbUsername[ ] , Password[ ] )
    return CallRemoteFunction ( "_WBB_CheckPassword" , "ss" , wbbUsername , Password );


    /* Creates a new user
    * param: string Username
    * string Password
    * string Email-Adress
    * [optional] int Activation state. 1 = Activated
    *
    * return: int -1 if mail-adress exists already
    * int 0 if username already exists
    * int 1 if user was created successfully
    */
    stock WBB_AddNewUser ( Username[ ] , Password[ ] , Email[ ] , ActivationState = 1 )
    return CallRemoteFunction ( "_WBB_AddNewUser" , "sssi" , Username , Password , Email , ActivationState );

    Spoiler anzeigen
    /* Sets user to activated
    * param: string Username
    *
    * return: int -1 if user is already activated
    * int 0 if user don´t exists
    * int 1 if user was activated
    */
    stock WBB_ActivateUser ( Username[ ] )
    return CallRemoteFunction ( "_WBB_ActivateUser" , "s" , Username );

    Spoiler anzeigen
    /* Sets user to banned
    * param: string Username
    * string Reason
    *
    * return: bool true if user was banned successfully
    * bool false if user don´t exists
    */
    stock WBB_BanUser ( Username[ ] , Reason[ ] )
    return CallRemoteFunction ( "_WBB_BanUser" , "ss" , Username , Reason );

    Spoiler anzeigen
    /* Reset ban of user
    * param: string Username
    *
    * return: bool true if user was unbanned successfully
    * bool false if user don´t exists
    */
    stock WBB_UnBanUser ( Username[ ] )
    return CallRemoteFunction ( "_WBB_UnBanUser" , "s" , Username );

    Spoiler anzeigen
    /* Send private message from user to user
    * param: string Username
    * string Recipient name
    * string Message subject
    * string Message
    *
    * return: int -1 if user don´t exists
    * int 0 is resipient do not exists
    * int 1 if message was sendet
    */
    stock WBB_NewPrivateMessage ( Username[ ] , RecipientName[ ] , Subject[ ] , Message[ ] )
    return CallRemoteFunction ( "_WBB_NewPrivateMessage" , "ssss" , Username , RecipientName , Subject , Message );

    Spoiler anzeigen
    /* Checks user activation state
    * param: string Username
    *
    * return: bool true if user is activated
    * bool false isn´t activated
    */
    stock WBB_GetUserActivationState ( Username[ ] )
    return CallRemoteFunction ( "_WBB_GetUserActivationState" , "s" , Username );


    /* Sets new password for user
    * param: string Username
    * string Password
    *
    * return: bool true if password changed
    * bool false if user don´t exists
    */
    stock WBB_SetUserPassword ( Username[ ] , Password[ ] )
    return CallRemoteFunction ( "_WBB_SetUserPassword" , "ss" , Username , Password );

    Spoiler anzeigen
    /* Sets a new profile field value like birthday or location
    * param: string Username
    * string Fieldname (e.g.hobbies)
    * string New value of field
    * int type of Value
    *
    * return: int 1 if option changed
    * int 0 if field dont exists
    * int -1 if user dont exists
    */
    stock WBB_SetProfileField ( Username[ ] , Field[ ] , Value[ ] , Type = PAWN_TYPE_INT )
    return CallRemoteFunction ( "_WBB_SetProfileField" , "sssd" , Username , Field , Value , Type );

    Spoiler anzeigen
    /* Gets profile info field of user
    * param: string Username
    * string Fieldname
    *
    * return: int value of field
    * int 0 if field dont exists
    * int -1 if user dont exists
    */
    stock WBB_GetProfileField ( Username[ ] , Field[ ] )
    return CallRemoteFunction ( "_WBB_GetProfileField" , "ss" , Username , Field );

    Spoiler anzeigen
    /* Sends a mail with activationcode to user
    * param: string Username
    * string Name of sender. E.g. XYZ Reallife
    * string Name of domain. E.g. xyz-reallife.net. Without www!!
    * string WBB forum index.php link. E.g. www.xyz-reallife.net/forum/index.php. Witout http and _GET variables!
    *
    * return: bool true if mail was sended successfully
    * bool false if user dont exists
    */
    stock WBB_SendUserActivationMail ( Username[ ] , Sendername[ ] , Servername[ ] , ForumIndexURL[ ] )
    return CallRemoteFunction ( "_WBB_SendUserActivationMail" , "ssss" , Username , Sendername , Servername , ForumIndexURL );

    Spoiler anzeigen
    /* Adds a new post to thread
    * param: int Thread ID where the post should be added
    * string Subject of post
    * string Message
    * string Username
    * int 1 if html should be enabled
    * int 1 if bb codes should be enabled
    *
    * return: bool true if post was saved successfully
    * bool false if user dont exists
    */
    stock WBB_AddPost ( Thread , Subject[ ] , Message[ ] , Username[ ] , BBCodes = 0 , HTML = 0 )
    return CallRemoteFunction ( "_WBB_AddPost" , "dsssdd" , Thread , Subject , Message , Username , BBCodes , HTML );

    Spoiler anzeigen
    /* Checks if user is in a specific group
    * param: string Username
    * int ID of Group
    *
    * return: int 1 if is in group
    * int 0 if user is not in group
    * int -1 if user dont exists
    */
    stock WBB_IsUserInGroup ( Username[ ] , GroupID )
    return CallRemoteFunction ( "_WBB_IsUserInGroup" , "sd" , Username , GroupID );

    Spoiler anzeigen

    /* Adds a user to a group
    * param: string Username
    * int ID of Group
    *
    * return: bool true if user was settet to group successfully
    * bool false if user dont exists
    */
    stock WBB_SetUserToGroup ( Username[ ] , GroupID )
    return CallRemoteFunction ( "_WBB_SetUserToGroup" , "sd" , Username , GroupID );

    Spoiler anzeigen
    /* Removes a user from a group
    * param: string Username
    * int ID of Group
    *
    * return: int 1 if user was removed from group
    * int 0 if user was not removed
    * int -1 if user dont exists
    * int -2 if user is not in group
    */
    stock WBB_RemoveUserFromGroup ( Username[ ] , GroupID )
    return CallRemoteFunction ( "_WBB_RemoveUserFromGroup" , "sd" , Username , GroupID );


    /* Changes users email adress
    * param: string Username
    * string New email adress
    *
    * return: bool true if mail adress changed
    * bool 0 if user is invalid
    */
    stock WBB_UpdateUserMail ( Username[ ] , Mail[ ] )
    return CallRemoteFunction ( "_WBB_UpdateUserMail" , "ss" , Username , Mail );

    Spoiler anzeigen
    /* Reads out user statistics
    * param: string Username
    * int Data
    *
    * return: int value
    * bool false if data or user is invalid
    */
    stock WBB_GetUserStats ( Username[ ] , Data )
    return CallRemoteFunction ( "_WBB_GetUserStats" , "sd" , Username , Data );

    Spoiler anzeigen
    /* Creates a new thread with first post in specific board Unstable! Not testet much!
    * param: int Board ID where thread should be stored in
    * string Topic (Thread headline)
    * string Username of writer
    * int 1 to disable thread. 0 to enable thread
    * int 1 to close thread. 0 to open thread
    * string Post subject (Headline)
    * string Post message
    * int 1 to enable bb codes. 0 to disable
    * int 1 to enable html. 0 to disable
    *
    * return: bool true if thread was successfull created
    * bool false if data or user is invalid
    */
    stock WBB_CreateThread ( Board , Topic[ ] , Username[ ] , Disabled , Closed , Subject[ ] , Message[ ] , BBCodes , HTML )
    return CallRemoteFunction ( "_WBB_CreateThread" , "dssddssdd" , Board , Topic , Username , Disabled , Closed , Subject , Message , BBCodes , HTML );



    Müsste ich das nicht dann im FS machen ?

  • und als Beispiel wäre das dann so?




    public _WBB_IsValidUser ( wbbUsername[ ] )
    if(strlen(wbbUsername) == 0) return 1;
    return IsValidUser ( wbbUsername );

  • Probiere es aus, ich muss noch sagen das das Problem nur unter OnPlayerConnect ist, mache ich das unter OnPlayerRequestClass. klappt es ohne Probleme :X
    #1 Nunja, jetzt Startet er aber klappt nix mehr :x

    Einmal editiert, zuletzt von GamerXiOS ()