filterscripts - komande

Započeo akeS, April 04, 2023, 04:59:06 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Zasto mi ni odjedne filterscripts ne radi komanda ispise mi - Upisali ste pogresnu komandu (error) ubacim plugin compailujme sve okej ali komanda ne radi
Deo skripte: [pawn]Vaš odgovor[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [pawn]Vaš odgovor[/pawn]
Slika/video ingame problema(obavezno ako je ingame problem): https://prnt.sc/QcOoU2_tXWLN  - https://prnt.sc/PYny7t6BgAr5


Citat: Ivo Dev poslato April 04, 2023, 09:30:24 PRE PODNE
Omašio si sekciju

Nije promasio sekciju...

#tema

Posalji deo code koji ti ispisuje tu poruku i filterscript da bi smo mogli videti sta je konflikt...


Citat: User Banned poslato April 04, 2023, 09:35:17 PRE PODNE
Jel ti rade komande od gm? ?

da komande iz GM rade 

evo primjer:
ubacim sistem gladi - (ovaj) https://balkan-samp.com/forum/index.php?topic=87577.0 ne radi kad kucam /jedi imaju textdrawovi oduzimaju se crtice (radi fs) ali komanda /jedi ne radi
Mod koji koristim: https://www.mediafire.com/file/ytc69ni30ir7n5d/New+World+LK.rar

testiro sam isto to na modu ovom - https://balkan-samp.com/forum/index.php?topic=143473.0 i fs i komanda rade

Citat: akeS poslato April 04, 2023, 13:31:03 POSLE PODNE
da komande iz GM rade 

evo primjer:
ubacim sistem gladi - (ovaj) https://balkan-samp.com/forum/index.php?topic=87577.0 ne radi kad kucam /jedi imaju textdrawovi oduzimaju se crtice (radi fs) ali komanda /jedi ne radi
Mod koji koristim: https://www.mediafire.com/file/ytc69ni30ir7n5d/New+World+LK.rar

testiro sam isto to na modu ovom - https://balkan-samp.com/forum/index.php?topic=143473.0 i fs i komanda rade


Nemamo nameru da skidamo, posalji sta je trazeno...

Takodje ne mozes samo ubaciti neku FS u gamemode i ocekivati da radi tek tako...

Citat: realnaith poslato April 04, 2023, 13:45:05 POSLE PODNE
Nemamo nameru da skidamo, posalji sta je trazeno...

Takodje ne mozes samo ubaciti neku FS u gamemode i ocekivati da radi tek tako...


evo FS
https://www.sendspace.com/file/ao71fu
evo code komadi:
CMD:dchat(playerid, params[])
{
new tmp[512], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if (Spawned[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats[playerid]==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Turn on Discord Chat using /dchaton.");
if (sscanf(params, "s[512]", tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /dchat [message]");
SendDC(CHANNEL_ID, "[chat]%s: %s ", name, tmp);
return 1;
}

CMD:dchaton(playerid, params[])
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
if (Spawned[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats[playerid]==1) return SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat is already switched on!");
DiscordStats[playerid]=1;
SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat turned on.");
return 1;
}

CMD:dchatoff(playerid, params[])
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if (Spawned[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats[playerid]==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat is already switched off!");
DiscordStats[playerid]=0;
SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat turned off.");
return 1;
}

Citat: akeS poslato April 04, 2023, 13:54:43 POSLE PODNE

evo FS
https://www.sendspace.com/file/ao71fu
evo code komadi:
CMD:dchat(playerid, params[])
{
new tmp[512], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if (Spawned[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats[playerid]==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Turn on Discord Chat using /dchaton.");
if (sscanf(params, "s[512]", tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /dchat [message]");
SendDC(CHANNEL_ID, "[chat]%s: %s ", name, tmp);
return 1;
}

CMD:dchaton(playerid, params[])
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
if (Spawned[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats[playerid]==1) return SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat is already switched on!");
DiscordStats[playerid]=1;
SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat turned on.");
return 1;
}

CMD:dchatoff(playerid, params[])
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if (Spawned[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Server: You must be spawned to use this command!");
if (DiscordStats[playerid]==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat is already switched off!");
DiscordStats[playerid]=0;
SendClientMessage(playerid, COLOR_WHITE, "Server: Discord Chat turned off.");
return 1;
}


Posalji sve u pastebin...

Takodje pregledaj sta sam ti napisao gore i posalji...
Poslednja Izmena: April 04, 2023, 14:07:58 POSLE PODNE od realnaith

Bolje da implementiras tu fs u mod i povezes
Sunce greje lagano šetam se po Voždovcu
Moja kučka i ja, furam je na povodcu
Zove se Lola i nije nešto lepa
Ali meni daće lapo kada dokopa se repa
Rođena na ulici, dolazi iz geta
I zato je gangsta kučka, a ne starleta
Zahvaljujući njoj meni dignuta je đoka
Krov je spušten, vožnjica od bloka do bloka
I ako glumiš mangupa jebaće ti mamicu
U tašni nema lak za nokte, ali ima palicu
Odrasla na Medaku, iz huda je sestra
Nijedna Snoopova kučka nije tol'ko gangsta
Za nju sam 'Pac, ona moja je Madonna
Ako znaš još neku takvu javi mi preko fona
I kada njesra izbije ona ne vata pištolja
Već nabada na prvu jer je gangsta drolja

public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
    if(result == -1) { SendClientMessage(playerid,0xFF6347FF,"* Upisali ste pogresnu komandu. Kucajte /komande za listu dostupnih komandi."); return 0; }
    commanddelay[playerid] = gettime();
new string[128]; format(string,sizeof(string),"%s /%s %s",PlayerName[playerid],cmd,params); LogSave( "Logovi/LogKomandi.log", string );
    return 1;
}


FS: https://pastebin.com/E6YNkxMi

Citat: akeS poslato April 04, 2023, 14:23:05 POSLE PODNE
public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
    if(result == -1) { SendClientMessage(playerid,0xFF6347FF,"* Upisali ste pogresnu komandu. Kucajte /komande za listu dostupnih komandi."); return 0; }
    commanddelay[playerid] = gettime();
new string[128]; format(string,sizeof(string),"%s /%s %s",PlayerName[playerid],cmd,params); LogSave( "Logovi/LogKomandi.log", string );
    return 1;
}


FS: https://pastebin.com/E6YNkxMi

Sada kada pogledas taj code, sta ti je logicno ?

ja da znam brt ne bi kacio ovde i pito za pomoc



Citat: akeS poslato April 04, 2023, 15:19:32 POSLE PODNE
ja da znam brt ne bi kacio ovde i pito za pomoc

Onda odes i naucis osnove, jer ako ne kontas prostu logicku stvar, nemas sta da trazis pomoc...

Citat: Mrvica poslato April 04, 2023, 15:26:19 POSLE PODNE
objasni glupom naithu :D

Nemere svako biti pametan :)