[Ajuda] Comando
#1

Onde eu coloco um comando STRCMP?
Reply
#2

Coloca em OnPlayerCommandText


Exemplo:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/ajuda"true))
    {
        
SendClientMessage(playerid0xFFFFFFFF"SERVER: Este й comando /ajuda!");
        return 
1;
    }
    return 
0;

Reply
#3

Coloque na callback OnPlayerCommandText ...
Reply
#4

Quote:
Originally Posted by CharCoast
Посмотреть сообщение
Coloca em OnPlayerCommandText


Exemplo:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/ajuda"true))
    {
        
SendClientMessage(playerid0xFFFFFFFF"SERVER: Este й comando /ajuda!");
        return 
1;
    }
    return 
0;

porem й melhor vc usar processador de comandos
ZCMD й mais simples e facil de usar

https://sampforum.blast.hk/showthread.php?tid=493276
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)