[Pedido] strcmp/zcmd
#1

Alguйm pode me ajudar a converter por favor, o params me atrapalha demais.

PHP код:
CMD:anunciar(playeridparams[])
{
    new 
Texto[128], Msg[128];
    if(
sscanf(params"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;

para: strcmp

PHP код:
if (strcmp(cmd"/comando"true) == 0
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)