SA-MP Forums Archive
when I type command /stats my samp is crash - 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: when I type command /stats my samp is crash (/showthread.php?tid=453909)



when I type command /stats my samp is crash - Luca12 - 26.07.2013

So today I was work on the control panel(sttats) and I go on the server to test that when I type command my samp server tell's me about crash


Re: when I type command /stats my samp is crash - alanhutch - 26.07.2013

Can you post the stats command?


Re: when I type command /stats my samp is crash - Luca12 - 26.07.2013

pawn Код:
CMD:stats(playerid, params[])
{
    if(hGledaStats[playerid] > 0) return SCM(playerid, GRAD2, "**Vec gledate podatke!");
    if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, GRAD2, "**Ne smijete biti u vozilu!");
    StatusTD(playerid, 1);
    new string[128], string2[256], hIme[MAX_PLAYER_NAME];
    RPIme(playerid, hIme);
    format(string, sizeof(string), "*%s gleda osobnu iskaznicu.", hIme);
    ProxDetector(6.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    new ptime = PlayerInfo[playerid][pConnectTime];
    new level = PlayerInfo[playerid][pLevel];
    new nxtlevel = PlayerInfo[playerid][pLevel]+1;
    new expamount = nxtlevel*levelexp;
    new ugovor = PlayerInfo[playerid][TimUgovor];
    new kugovor = PlayerInfo[playerid][KaznaUgovor];
    new exp = PlayerInfo[playerid][pExp];
    new otext[64];
    if(PlayerInfo[playerid][pOrigin] == 1) { otext = "Hrvatska"; }
    else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "BiH"; }
    else if(PlayerInfo[playerid][pOrigin] == 3) { otext = "Srbija"; }
    else if(PlayerInfo[playerid][pOrigin] == 4) { otext = "Crna Gora"; }
    else if(PlayerInfo[playerid][pOrigin] == 5) { otext = "Slovenija"; }
    else if(PlayerInfo[playerid][pOrigin] == 6) { otext = "Makedonija"; }
    else if(PlayerInfo[playerid][pOrigin] == 7) { otext = "Ostalo"; }
    format(string2, sizeof string2,"%s,%d%d,%s,%d,%d,%d/5,%d,%d,%d",
    hIme, level, exp,expamount,otext, ptime, PlayerInfo[playerid][pMinute],
    PlayerInfo[playerid][Opomenut], ugovor, kugovor, PlayerInfo[playerid][pDonator]);
    TextDrawSetString(StatusTD4[playerid], string2);
    TextDrawSetString(StatusTD5[playerid], string2);
    TextDrawSetString(StatusTD6[playerid], string2);
    TextDrawSetString(StatusTD7[playerid], string2);
    TextDrawSetString(StatusTD8[playerid], string2);
    TextDrawSetString(StatusTD9[playerid], string2);
    TextDrawSetString(StatusTD10[playerid], string2);
    TextDrawSetString(StatusTD11[playerid], string2);
    TextDrawSetString(StatusTD12[playerid], string2);
    TextDrawSetString(StatusTD13[playerid], string2);
    TextDrawShowForPlayer(playerid, StatusTD0[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD1[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD2[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD3[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD4[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD5[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD6[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD7[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD8[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD9[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD10[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD11[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD12[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD13[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD39[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD43[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD44[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD45[playerid]);
    TextDrawShowForPlayer(playerid, StatusTD46[playerid]);
    hGledaStats[playerid] = STATS_RACUN;
    return 1;
}



Re: when I type command /stats my samp is crash - alanhutch - 26.07.2013

I don't know man... Everything seems ok...


Re: when I type command /stats my samp is crash - Luca12 - 26.07.2013

I fix it but it doesn't show the textdraws whick i put in the command