SA-MP Forums Archive
[Ajuda] Comandos simplesmente nгo funcionam - 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] Comandos simplesmente nгo funcionam (/showthread.php?tid=622732)



Comandos simplesmente nгo funcionam - UserUnk0wn - 26.11.2016

Bom pessoal,

Eu coloquei um FS de Presentes em uma GM bбsica (new) sу para testar, aн eu entro no servidor da tudo certo os comandos do FS e tal, mas os da GM que eu coloquei alguns, nгo funcionam,
Provavelmente й o FS, entгo tem como vocкs me explicarem como conserta isso?

Agradeзo...


Re: Comandos simplesmente nгo funcionam - Marllun - 26.11.2016

UserUnk0wn, os comando do seu file script й zcmd й da sua gm й strcmp?


Re: Comandos simplesmente nгo funcionam - UserUnk0wn - 26.11.2016

Quote:
Originally Posted by Marllun
Посмотреть сообщение
UserUnk0wn, os comando do seu file script й zcmd й da sua gm й strcmp?
Sim, se vocк for dizer pra por ZCMD no GM, quando eu coloco exemplo, esse comando:

PHP код:
CMD:tapa(playeridparams[])
{
    new 
name[MAX_PLAYER_NAME], IDstring[120];
    if(
PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1,"[ERRO] Vocк nгo й um ADMIN");
    if(
sscanf(params"u"ID)) return SendClientMessage(playerid,-1,"USE: /Tapa [ID]");
    if(!
IsPlayerConnected(ID)) return 1;
    new 
Float:c[3];
    
GetPlayerPos(ID,c[0],c[1],c[2]);
    
SetPlayerPos(ID,c[0],c[1],c[2]+15);
    
GetPlayerName(IDnamesizeof(name));
    
format(stringsizeof(string), "O(A) ADM %s deu um tapa no Jogador(a) %s."name);
    
SendClientMessageToAll(Cor_Roxostring);
    return 
1;

Da os seguintes warnings

PHP код:
symbol is never used"CMD"
symbol is never used"tapa" 
Se vocк poder me explicar como resolvo isso, eu agradeзo


Re: Comandos simplesmente nгo funcionam - Marllun - 26.11.2016

vai no topo da gm em baixo do #include <a_samp>
colocar #include <zcmd>

se vocк nгo tive a include baixar ela aqui:https://www.******.com.br/search?q=z...hrome&ie=UTF-8