[Ajuda] /fakeban /fakekick como faзo em strcmp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] /fakeban /fakekick como faзo em strcmp (
/showthread.php?tid=500563)
/fakeban /fakekick como faзo em strcmp - BWCALLEf - 13.03.2014
Eu Gostaria de Criar o Cmd de /fakeban e /fakekick mas em strcmp tipo o administrador escreve /fakeban [ID] [motivo]
mas o player nao ser clicado uma trolagem
Re: /fakeban /fakekick como faзo em strcmp -
Douglas_prt - 13.03.2014
/edit
Re: /fakeban /fakekick como faзo em strcmp - BWCALLEf - 13.03.2014
ESTOU COLOCANDO PARA APENAS ADM LVL 5 USAR OS CMD MAS DA OS SEGUINTES ERROS
Код:
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\pawno\include\streamer.inc(391) : error 017: undefined symbol "Streamer_OnPlayerPickUpPickup"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\pawno\include\streamer.inc(411) : error 017: undefined symbol "Streamer_OnPlayerEnterCP"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(362) : error 017: undefined symbol "AddFlitsPaal"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(363) : error 017: undefined symbol "AddFlitsPaal"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(364) : error 017: undefined symbol "AddFlitsPaal"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(365) : error 017: undefined symbol "AddFlitsPaal"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(366) : error 017: undefined symbol "AddFlitsPaal"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(367) : error 017: undefined symbol "AddFlitsPaal"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1794) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1795) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1796) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1797) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1798) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1799) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1800) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1801) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1802) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1803) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1804) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1805) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1806) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1807) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1808) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1809) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1810) : error 017: undefined symbol "CPS_AddCheckpoint"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(1811) : error 017: undefined symbol "CPS_AddCheckpoint"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Код:
if(strcmp("/fakekick", cmdtext, true) == 0) {
new id, name[MAX_PLAYER_NAME+1], msgsize[100], namesize[24+MAX_PLAYER_NAME+1];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Utilizaзгo: /fakekick [ID]");
id = strval(tmp);
GetPlayerName(id, name, sizeof(namesize));
format(string, sizeof(msgsize), "O administrador kickou o jogador %s.", name);
if(pAdmin[playerid] == 5 ){
SendClientMessageToAll(-1, string);
return 1;
}
Sem o if(pAdmin[playerid] == 5 ) {
da estes erros
Код:
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(6177) : error 017: undefined symbol "tmp"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(6178) : error 017: undefined symbol "tmp"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(6179) : error 017: undefined symbol "tmp"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(6176) : warning 204: symbol is assigned a value that is never used: "namesize"
C:\Users\Matheus\Desktop\BWC CONSERTADO - Copia\gamemodes\BWC.pwn(6176) : warning 204: symbol is assigned a value that is never used: "msgsize"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: /fakeban /fakekick como faзo em strcmp -
JonathanFeitosa - 13.03.2014
pawn Код:
if(strcmp("/fakekick", cmdtext, true) == 0) {
new id, tmp[24], name[MAX_PLAYER_NAME+1];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Utilizaзгo: /fakekick [ID]");
id = strval(tmp);
GetPlayerName(id, name, sizeof(namesize));
format(string, sizeof(msgsize), "O administrador kickou o jogador %s.", name);
if(pAdmin[playerid] == 5 ){
SendClientMessageToAll(-1, string);
return 1;
}