[Pedido] strcmp/zcmd
#5

PHP код:
if (strcmp(cmdtext"/anunciar"true) == 0)  

    new 
Texto[128], Msg[128]; 
    if(
sscanf(cmdtext"s[128]"Texto)) return SendClientMessage(playerid, -1"Digite: /anunciar [texto]"); 
    new 
Nome[MAX_PLAYER_NAME]; 
    
GetPlayerName(playeridNomeMAX_PLAYER_NAME); 
    
format(Msgsizeof(Msg), "%s: %s"NomeTexto); 
    
TextDrawSetString(textocnnMsg); 
    
TextDrawShowForAll(textocnn); 
    
SetTimer("TirarAnuncio",5000,false); 
    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: 1 Guest(s)