when I type command /stats my samp is crash
#1

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

Can you post the stats command?
Reply
#3

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;
}
Reply
#4

I don't know man... Everything seems ok...
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)