[Pedido] strcmp/zcmd
#2

Tenta aн, sou novo n sei se vai...
Quote:

if (strcmp(cmd, "/anunciar", true) == 0)
{
new params;
new Texto[128], Msg[128];
if(sscanf(params, "s[128]", Texto)) return SendClientMessage(playerid, -1, "Digite: /anunciar [texto]");

new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);

format(Msg, sizeof(Msg), "%s: %s", Nome, Texto);
TextDrawSetString(textocnn, Msg);
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)