[Pedido] strcmp/zcmd
#6

Nгo testei mas tenta ae amigo!

PHP код:
if(strcmp(cmd,"/anunciar",true)==0)
{
    new 
Texto[60], Nome[MAX_PLAYER_NAME], Msg[128], tmp[128];
    
GetPlayerName(playeridNomesizeof(Nome));
    
tmp strtok(cmdtext,idx);
    if(!
strlen(tmp)) return SendClientMessage(playerid, -1"Digite: /anunciar [texto]");
    
format(Msgsizeof(Msg), "%s: %s"NomeTexto);
    
TextDrawSetString(textocnnMsg);
    
TextDrawShowForAll(textocnn);
    
SetTimer("TirarAnuncio"5000false);
    return 
1;

Reply


Messages In This Thread
strcmp/zcmd - by SukMathcuck - 14.07.2015, 03:20
Re: strcmp/zcmd - by Welconha - 14.07.2015, 03:25
Re: strcmp/zcmd - by zSuYaNw - 14.07.2015, 03:27
Re: strcmp/zcmd - by SukMathcuck - 14.07.2015, 03:28
Re: strcmp/zcmd - by Welconha - 14.07.2015, 03:29
Re: strcmp/zcmd - by IgorLuiz - 14.07.2015, 03:39

Forum Jump:


Users browsing this thread: 2 Guest(s)