[FilterScript] GiromB System VoteKick ( G-VoteKick)
#2

Bom, trabalho. Algumas melhorias:

PHP код:
static GVotes[MAX_PLAYERS];
static 
GMotivo[30];
static 
pID;
static 
bool:GVotosON;
static 
bool:GVotou[MAX_PLAYERS];
static 
stra[128];
static 
TimerG
1 - Seria melhor assim:

PHP код:
static GVotes[MAX_PLAYERS],
GVotes[MAX_PLAYERS],
GMotivo[30],
pID,
bool:GVotosON,
bool:GVotou[MAX_PLAYERS],
stra[128],
TimerG
2 - Pegue o nome do jogador apenas uma vez em uma array: https://sampforum.blast.hk/showthread.php?tid=630781

3 - Veja a quantidade de cйlulas necessбrias por string, nгo apenas atribua 128, e se possнvel, use a mesma.

4 - Vocк estб retornando 0 na callback OnDialogResponse. Fazer isso em filterscripts vai impedir que a callback funcione no gamemode.

5 - Vocк nгo faz uso da callback OnFilterScriptExit, nгo й necessбrio deixar-la no filterscript.

6 - Nгo й necessбrio declarar todas as variaveis como estбticas.
Reply


Messages In This Thread
GiromB System VoteKick ( G-VoteKick) - by HeisenGiromB - 02.04.2017, 16:03
Re: GiromB System VoteKick ( G-VoteKick) - by Jelly23 - 02.04.2017, 16:16
Re: GiromB System VoteKick ( G-VoteKick) - by IlanZ - 02.04.2017, 16:29
Re: GiromB System VoteKick ( G-VoteKick) - by HeisenGiromB - 02.04.2017, 16:33
Re: GiromB System VoteKick ( G-VoteKick) - by Jelly23 - 02.04.2017, 16:41
Re: GiromB System VoteKick ( G-VoteKick) - by AuhMaru - 02.04.2017, 17:31
Re: GiromB System VoteKick ( G-VoteKick) - by HeisenGiromB - 02.04.2017, 17:39
Re: GiromB System VoteKick ( G-VoteKick) - by AuhMaru - 02.04.2017, 17:45
Re: GiromB System VoteKick ( G-VoteKick) - by HeisenGiromB - 02.04.2017, 17:47
Re: GiromB System VoteKick ( G-VoteKick) - by PT - 04.04.2017, 08:07

Forum Jump:


Users browsing this thread: 5 Guest(s)