ann command causes crash
#2

Код:
CMD:ann(playerid, params[])
{
 if(Player[playerid][Level] < 5 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"{0099FF}>> {EEEEEE}Error: {0099FF}You Need High level.");

         new tmp[200],jugador[32],enviador[128];

        if(sscanf(params, "s", tmp))
	{
	    Usage(playerid, "/ann <msg>");
	    return true;
	}

       GetPlayerName(playerid, jugador, sizeof(jugador));

       format(enviador, sizeof(enviador),  "Admi {FFFFFF}%s envio ann", jugador);
       SendClientMessageToAll(PINK_COLOR,enviador);

	format(enviador, sizeof(enviador), "~w~%s", tmp);
	GameTextForAll(enviador, 4000, 3);
       return 1;
}
Hope this works!
Use sscanf.
Reply


Messages In This Thread
ann command causes crash - by vegaltasendai - 26.03.2018, 22:21
Re: ann command causes crash - by UFF - 27.03.2018, 02:20
Re: ann command causes crash - by vegaltasendai - 27.03.2018, 04:45
Re: ann command causes crash - by UFF - 27.03.2018, 05:21
Re: ann command causes crash - by AlamoTR - 27.03.2018, 06:16
Re: ann command causes crash - by vegaltasendai - 27.03.2018, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)