Army Ranks Sometimes rank resets...

Ant1Lamer

Пользователь
Регистрация
16 Июн 2017
Сообщения
15
Симпатии
2
Пол
Мужской
#1
So i have probelm with this plugin sometimes rank fall(resets) and player has a Rednik not all players only a random when connect then maybe he resets i dont understand where is the probelm in save_usr or load_data... or anything else
 

Вложения

Ant1Lamer

Пользователь
Регистрация
16 Июн 2017
Сообщения
15
Симпатии
2
Пол
Мужской
#3
hmm not bad thanks but maybe something simple like army or rewrite this army ? :)
 

shram47

Пользователь
Регистрация
22 Июн 2017
Сообщения
132
Симпатии
30
Пол
Мужской
#5
neygomon, поясни пж
PHP:
public client_putinserver(id)
{
    for (new i = 0; i<PlData ; i++)
    {
        UserData[id][i] = 0;
    }
 
    set_task(5.0,"respawn_check", id)
    set_task(1.0, "load_data", id)
}

public client_disconnect(id)
{
    save_usr(id);
    for (new i = 0; i<PlData ; i++)
    {
        UserData[id][i] = 0;
    }
}
 

Ant1Lamer

Пользователь
Регистрация
16 Июн 2017
Сообщения
15
Симпатии
2
Пол
Мужской
#6
Thanks Molodoi! I will visited!
shram47 what you mean whit this i think the problem in this putinserver and disconnect but i dont know.. Need to be visited by some scripter :D
28 Июн 2017
Hmm strange thing when compile my army with 1.8.2 compilator everything is okay and no errors but when i compile with reamxx compilator give this error

Код:
L 06/28/2017 - 22:23:04: [AMXX] Displaying debug trace (plugin "army_ranks.amxx", version "1.3.1")
L 06/28/2017 - 22:23:04: [AMXX] Run time error 4: index out of bounds
L 06/28/2017 - 22:23:04: [AMXX]    [0] army_ranks.sma::fwPlayerSpawn (line 264)
And the last rank (GENERAL) is with normal life(100) and armor(0) only GENERAL or set with amx_setlevel same... very strange
 

Ant1Lamer

Пользователь
Регистрация
16 Июн 2017
Сообщения
15
Симпатии
2
Пол
Мужской
#7
up any help ?

Код:
L 07/02/2017 - 18:04:52: [AMXX] Displaying debug trace (plugin "army_ranks.amxx", version "1.3.1")
L 07/02/2017 - 18:04:52: [AMXX] Run time error 4: index out of bounds
L 07/02/2017 - 18:04:52: [AMXX]    [0] army_ranks.sma::check_level (line 193)
L 07/02/2017 - 18:04:52: [AMXX]    [1] army_ranks.sma::EventDeath (line 249)