/cc komanda problem

Započeo Ivo#2312, Maj 09, 2023, 19:01:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kad idem da očistim chat piše da nisam ovlašćen, a helper sam
Deo skripte:
[pawn]
YCMD:cc(playerid, params[], help) {

    if(!player_Admin[playerid] || !player_Helper[playerid]) return SendClientMessage(playerid, x_red, "ERROR: "c_white"Niste ovlasceni!");
    for(new cc; cc < 110; cc++) return SendClientMessageToAll(-1, "");
    if(player_Admin[playerid] == 1) {
        va_SendClientMessageToAll(-1, ""c_red"Administrator "c_white"%s je ocistio chat.", ReturnPlayerName(playerid));
    }
    if(player_Admin[playerid] == 2) {
        va_SendClientMessageToAll(-1, ""c_red"Administrator "c_white"%s je ocistio chat.", ReturnPlayerName(playerid));
    }
    if(player_Admin[playerid] == 3) {
        va_SendClientMessageToAll(-1, ""c_red"Administrator "c_white"%s je ocistio chat.", ReturnPlayerName(playerid));
    }
    if(player_Admin[playerid] == 4) {
        va_SendClientMessageToAll(-1, ""c_red"Head Administrator "c_white"%s je ocistio chat.", ReturnPlayerName(playerid));
    }
    if(player_Admin[playerid] == 5) {
        va_SendClientMessageToAll(-1, ""c_red"Director "c_white"%s je ocistio chat.", ReturnPlayerName(playerid));
    }
    if(player_Admin[playerid] == 6) {
        va_SendClientMessageToAll(-1, ""c_red"Owner "c_white"%s je ocistio chat.", ReturnPlayerName(playerid));
    }
    if(player_Helper[playerid] == 1) {
        va_SendClientMessageToAll(-1, ""c_green"Helper "c_white"%s je ocistio chat.", ReturnPlayerName(playerid));
    }

    return 1;

}
[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):/
Slika/video ingame problema(obavezno ako je ingame problem): /

if(!player_Admin[playerid] || !player_Helper[playerid]) return SendClientMessage(playerid, x_red, "ERROR: "c_white"Niste ovlasceni!");

Citat: Tebrix poslato Maj 09, 2023, 19:26:09 POSLE PODNE
if(!player_Admin[playerid] || !player_Helper[playerid]) return SendClientMessage(playerid, x_red, "ERROR: "c_white"Niste ovlasceni!");
Pa tako sam i stavio nez šta je problem

Edit...
nista pogrijesio sam ignore
Marketing Associate[/url]
Graphic Designer
UI/UX Designer
Instagram