Backtrace sv crashed
#1

Anyone can help me?


PHP код:
[22:49:51] [debugServer crashed while executing PuraJoda.amx
[22:49:51] [debugAMX backtrace:
[
22:49:51] [debug#0 0000007b in ?? (48, 70, 70, 48, 48, 125, 118, 101, 110, 116, ... <2 arguments>) from PuraJoda.amx
[22:49:51] [debug#1 0000007b in public cmd_addhouse () from PuraJoda.amx
[22:49:51] [debug#2 native CallLocalFunction () from samp03svr
[22:49:51] [debug#3 00000748 in public OnPlayerCommandText (1, 9130092) from PuraJoda.amx 
PHP код:
CMD:addhouse(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return 0;
        new
        
string[128],
        
hid,
        
price,
        
level,
        
interior,
        
Float:p_Pos[3],
          
query[500], data[200]
    ;
    if(
sscanf(params"iii"levelprice,interior)) return SendClientMessage(playeridCOLOR_YELLOW"USA: /addhouse <(Premium)level> <precio>  <interiorid(0-17)>");
    if(
interior || interior 20) return SendClientMessage(playeridCOLOR_RED"[Pura Joda]  No exceda lнmite de interiores.");
    if(
level 0) return SendClientMessage(playeridCOLOR_RED"[Pura Joda]  Nivel despuйs de 0");
    new 
DBResult:db_query(HouseDB"SELECT hWorld FROM `pjHouse` ORDER BY `hWorld` desc LIMIT 1");
    new 
field2[30],worlddb_get_field_assoc(y"hWorld"field230); world strval(field2);
    
db_free_result(y);
    
world++;
    
GetPlayerPos(playeridp_Pos[0], p_Pos[1], p_Pos[2]);
       
strcat(query"INSERT INTO `pjHouse` (`hName`, `hOwner`, `hIntName`, `hNotes`,`hLevel`, `hPrice`, `hSale`, `hInt`, `hWorld`, `hLock`, `hPx`, `hPy`, `hPz`, `hPa`, `hEx`, `hEy`, `hEz`, `hEXx`, `hEXy`, `hEXz`, `hMSafe`) VALUES (");
    
format(datasizeof(data), "'None','None','%s','None','%d','%d','0','%d',",intInfo[interior][Name],level,price,intInfo[interior][i_Int]);
    
strcat(querydata);
    
format(datasizeof(data), "'%d','1','%f','%f','%f',",world,intInfo[interior][SpawnPointX],intInfo[interior][SpawnPointY],intInfo[interior][SpawnPointZ]);
    
strcat(querydata);
    
format(datasizeof(data), "'%f','%f','%f','%f','%f','%f','%f','1')",intInfo[interior][SpawnPointA],p_Pos[0],p_Pos[1],p_Pos[2],intInfo[interior][ExitPointX],intInfo[interior][ExitPointY],intInfo[interior][ExitPointZ]);
    
strcat(querydata);
    
db_free_result(db_query(HouseDBquery));
       new 
DBResult:db_query(HouseDB"SELECT `hID` FROM `pjHouse` ORDER BY `hID` desc LIMIT 1"); new field[30]; db_get_field_assoc(r"hID"field30); hid strval(field); db_free_result(r);
    
format(hInfo[hid][hName], 256"None");
    
format(hInfo[hid][hOwner], 256"None");
    
hInfo[hid][hLevel] = level;
    
hInfo[hid][hPrice] = price;
    
hInfo[hid][hSale] = 0;
    
hInfo[hid][hInterior] = intInfo[interior][i_Int];
    
hInfo[hid][hWorld] = world;
    
hInfo[hid][hLocked] = 1;
    
hInfo[hid][hEnterPos][0] = intInfo[interior][SpawnPointX];
    
hInfo[hid][hEnterPos][1] = intInfo[interior][SpawnPointY];
    
hInfo[hid][hEnterPos][2] = intInfo[interior][SpawnPointZ];
    
hInfo[hid][hEnterPos][3] = intInfo[interior][SpawnPointA];
    
hInfo[hid][hPickupP][0] = p_Pos[0];
    
hInfo[hid][hPickupP][1] = p_Pos[1];
    
hInfo[hid][hPickupP][2] = p_Pos[2];
    
hInfo[hid][ExitCPPos][0] = intInfo[interior][ExitPointX];
    
hInfo[hid][ExitCPPos][1] = intInfo[interior][ExitPointY];
    
hInfo[hid][ExitCPPos][2] = intInfo[interior][ExitPointZ];
    
format(hInfo[hid][hIName], 256"%s"intInfo[interior][Name]);
    
format(hInfo[hid][hNotes], 256"None");
    
hInfo[hid][MoneyStore] = 0;
    
format(stringsizeof(string), "[Pura Joda]  HouseID %d creada. PJCoins necesarias %d, Nivel Premium %d, Mundo virtual %d",hid ,pricelevelworld);
    
SendClientMessage(playeridCOLOR_GREENstring);
    
format(stringsizeof(string), "[Pura Joda] Casa creada bajo el interior %s (Int %d)"intInfo[interior][Name], interior);
    
SendClientMessage(playerid, -1string);
    if(
hInfo[hid][hSale] == 0)
        {
        
format(string256""W"Direcciуn: "G"%d\n"W"Interior: "G"%s\n"W"Precio: "G"%d PJCoin(s).\n\n"W"Propiedad en "G"venta."hidhInfo[hid][hIName], hInfo[hid][hPrice]);
            if(
hInfo[hid][hLevel] >= 4)
            {
            
hInfo[hid][hMapIcon] = CreateDynamicMapIcon(hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], SALE_ICON, -100, -1STREAM_DISTANCESMAPICON_LOCAL);
            
hInfo[hid][hPickup] = CreateDynamicPickup(195241hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], 00, -1STREAM_DISTANCES2);
            }
            else
            if(
hInfo[hid][hLevel] == 3)
            {
              
hInfo[hid][hMapIcon] = CreateDynamicMapIcon(hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], SALE_ICON, -100, -1STREAM_DISTANCESMAPICON_LOCAL);
            
hInfo[hid][hPickup] = CreateDynamicPickup(195231hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], 00, -1STREAM_DISTANCES2);
            }
            else
            {
              
hInfo[hid][hMapIcon] = CreateDynamicMapIcon(hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], SALE_ICON, -100, -1STREAM_DISTANCESMAPICON_LOCAL);
            
hInfo[hid][hPickup] = CreateDynamicPickup(SALE_PICKUP1hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], 00, -1STREAM_DISTANCES2);
            }
        }
        else
        {
            if(
hInfo[hid][hLocked] == 0)
            {
                if(
strcmp(hInfo[hid][hName], "None"true) == 0)
                {
                
format(string256""W"Direcciуn: "R"%d\n"W"Propietario: "R"%s\n\n"R"Presiona 'Y' para entrar."hidhInfo[hid][hOwner]);
                }
                else
                {
                    
format(string256""W"Direcciуn: "R"%d\n"W"Propietario: "R"%s\n\n"R"Presiona 'Y' para entrar."hidhInfo[hid][hOwner]);
                }
            }
            else
            {
                if(
strcmp(hInfo[hid][hName], "None"true) == 0)
                {
                      
format(string256""W"Direcciуn: "R"%d\n"W"Propietario: "R"%s\n\n"R"Presiona 'Y' para entrar."hidhInfo[hid][hOwner]);
                }
                else
                {
                
format(string256""W"Direcciуn: "R"%d\n"W"Propietario: "R"%s\n\n"R"Presiona 'Y' para entrar."hidhInfo[hid][hOwner]);
                }
            }
            
hInfo[hid][hMapIcon] = CreateDynamicMapIcon(hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], NOTSALE_ICON, -100, -1STREAM_DISTANCESMAPICON_LOCAL);
            
hInfo[hid][hPickup] = CreateDynamicPickup(195221hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], 00, -1STREAM_DISTANCES2);
        }
    
hInfo[hid][hLabel] = CreateDynamic3DTextLabel(string, -1hInfo[hid][hPickupP][0], hInfo[hid][hPickupP][1], hInfo[hid][hPickupP][2], STREAM_DISTANCES3INVALID_PLAYER_IDINVALID_VEHICLE_ID100, -1STREAM_DISTANCES3);
    
hInfo[hid][hCP] = CreateDynamicCP(hInfo[hid][ExitCPPos][0], hInfo[hid][ExitCPPos][1], hInfo[hid][ExitCPPos][2], 2.0hInfo[hid][hWorld], hInfo[hid][hInterior], -115.0);
      
format(stringsizeof(string), "CASA ID [%d] creada.",hid);
    
SendClientMessage(playerid,-1string);
    
printf("...HouseID %d created"hid);
       
SaveHouse(hid);
    
DestroyDynamicCP(hInfo[hid][hCP]);
    
DestroyDynamicPickup(hInfo[hid][hPickup]);
    
DestroyDynamicMapIcon(hInfo[hid][hMapIcon]);
    
DestroyDynamic3DTextLabel(hInfo[hid][hLabel]);
    
LoadHouse(hid);
    return 
1;

Reply
#2

There's a lot of code, you'll need to compile with debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info

After done the above: restart the server and if you get logs with [debug] prefix again, post them here. It will be more detailed (exact line).

---

What I noticed is that you use "256" for everything (in format). You should really read this: http://web.archive.org/web/201410280...ad.php?t=55261
Reply
#3

I changed 256 by 144, put the manner set out on the page and this is the result:
PHP код:

[13:46:38] [debugServer crashed while executing PuraJoda.amx
[13:46:38] [debugAMX backtrace:
[
13:46:38] [debug#0 0000007b in ?? (... <12 arguments>) at E:\Pura Joda v1.0\pawno\include\float.inc:112
[13:46:38] [debug#1 0000007b in public cmd_addhouse () at E:\Pura Joda v1.0\pawno\include\float.inc:112
[13:46:38] [debug#2 native CallLocalFunction () from samp03svr
[13:46:38] [debug#3 000008d4 in public OnPlayerCommandText (playerid=1, cmdtext[]=@0050e718 "/addhouse 1 10 15") at E:\Pura Joda v1.0\pawno\include\zcmd.inc:108 
Reply
#4

Do you use an old version of crashdetect plugin? Please update: https://github.com/Zeex/samp-plugin-...es/tag/v4.15.1

The function's name is still unknown (even with debug level 3) and if it was a native, it should have given its name. It also reports to float.inc file (old bug pointing to operators).
Reply
#5

I installed the crashdetect happened to me but it still appears
Reply
#6

PHP код:
4:16:34] ...HouseID 478 created
[14:16:34____________________________
[14:16:34casa 478 se guardo con exito.
[
14:16:34____________________________
[14:16:34] [debugServer crashed while executing PuraJoda.amx
[14:16:34] [debugAMX backtrace:
[
14:16:34] [debug#0 0000007b in ?? (... <12 arguments>) at E:\Pura Joda v1.0\pawno\include\float.inc:112
[14:16:34] [debug#1 0000007b in public cmd_addhouse () at E:\Pura Joda v1.0\pawno\include\float.inc:112
[14:16:34] [debug#2 native CallLocalFunction () from samp03svr
[14:16:34] [debug#3 000008d4 in public OnPlayerCommandText (playerid=4, cmdtext[]=@0050e718 "/addhouse 1 10 14") at E:\Pura Joda v1.0\pawno\include\zcmd.inc:108 
Reply
#7

I really don't know why the plugin fails to report accurately so old-school debugging is the way to go: print messages in every line to see where the code stops.
Reply
#8

then there is no solution?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)