Pomoc oko chata

EmrahScript Započeo .ysi
pre 4 godine
568
pregleda
8
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
EmrahScript
Enforcer
pre 4 godine
Problem(error/warning): Kqko da napravim kao na Skill Areni da kada Admin ili GameMaster pise u IC chat da pise ono (( Admin: tekst ))  molim vas pomoc
Deo skripte:
/

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //pawn]
Slika/video ingame problema(obavezno ako je ingame problem): /
Grebovic_Danijel
Godfather
pre 4 godine
ovo ubaci u onplayertext samo podesi kao što je kod tebe u skripti za boje i provere
	if(AdminDuty == 1)
{
new tekst1 = strlen(text),string;
for(new i = 0; i format(string, sizeof(string), ""TZUTA"(( %s: %s ))", GetName(playerid), text);
ProxDetector(20.0, playerid, string,COLOR_TZUTA,COLOR_TZUTA,COLOR_TZUTA,COLOR_TZUTA,COLOR_TZUTA);
return 0;
}
if(GMDuty == 1)
{
new tekst1 = strlen(text),string;
for(new i = 0; i format(string, sizeof(string), ""SPLAVA"(( %s: %s ))", GetName(playerid), text);
ProxDetector(20.0, playerid, string,COLOR_GMPLAVA,COLOR_GMPLAVA,COLOR_GMPLAVA,COLOR_GMPLAVA,COLOR_GMPLAVA);
return 0;
}
EmrahScript
Enforcer
pre 4 godine
Hvala brate ali sad mi izbacuje 1 warning i 1 error na kodovima:

if(AdminDuty == 1)    tu mi izbacuje warning: tag mismatch

if(IsNumeric(text)) text = `*` ;    tu mi izbacuje error: invalid expression, assumed zero

Brate molim te pomozi
Dime123
Made Man
pre 4 godine

                if(PlayerInfo > 0 || PlayerInfo > 0)
{
if(AdminDuty == 1 || GMDuty == 1)
{
        new admin = PlayerInfo, buffer;
text = toupper(text);
        GetPlayerName(playerid, buffer, 24 + 1);
format(buffer, sizeof buffer, "(( %s %s: "BELA"%s "AdminChat"))", admin ? "Admin" : "GM", buffer, text);
SetPlayerChatBubble(playerid, text, 0x3499CCFF, 100.0, 10000);
            ProxDetector(30.0, playerid, admin ? NS_BOJACHAT : NS_SPLAVA, buffer);
        }
        else if(AdminDuty == 0 || GMDuty == 0)
        {
        new buffer, name;
        text = toupper(text);
    GetPlayerName(playerid, name, 24 + 1);
format(buffer, sizeof buffer, "%s kaze: %s", name, text);
SetPlayerChatBubble(playerid, text, 0x3499CCFF, 100.0, 10000);
ProxDetector(30.0, playerid, BELA2, buffer);
        }
}
EmrahScript
Enforcer
pre 4 godine
Brate izlazi mi sad warning jedan na kodu:
new admin = PlayerInfo, buffer;


Warning je:  symbol is assigned a value that is never used: "admin"
EmrahScript
Enforcer
pre 4 godine
Warning sam resio,al sad kada sam usao in game da isprobam,kad nesto napisem dupla mi text... evo ovako.

(( Admin / Helper Emrah: E ))
Emrah kaze: E

I tako mi uvijek
Taylor Script
Made Man
pre 4 godine
Sync wrote on January 5, 2022, 3:45 pm:
Warning sam resio,al sad kada sam usao in game da isprobam,kad nesto napisem dupla mi text... evo ovako.

(( Admin / Helper Emrah: E ))
Emrah kaze: E

I tako mi uvijek
Moras stavit return 0; kada ispise to helper taj i taj to jest u poslije ovog prox detektor to ti se dogadja zato sto se odradi to sto si htio tj ispise helper taj i taj i program nastavlja dalje i ispise po defaultu znaci moras vratit nesto sa return i tjt

Pisem sa moba valjda si me skonto
EmrahScript
Enforcer
pre 4 godine
E skontao sam brate,hvala ti puno

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava