14.11.2015, 16:20
You forget to tell sscanf how big the text string should be.
You are doing this:
When it should be:
Otherwise it will produce a warning.
Anyways, you've did pretty good job and the explanations you gave are detailed enough for newbies in pawn.
You are doing this:
PHP Code:
if(sscanf(params, "iis", time, ty, msg)) return SendClientMessage(playerid, -1, "Usage: /announce [Time] [Msg Type] [TEXT]");
PHP Code:
if(sscanf(params, "iis[25]", time, ty, msg)) return SendClientMessage(playerid, -1, "Usage: /announce [Time] [Msg Type] [TEXT]");
Anyways, you've did pretty good job and the explanations you gave are detailed enough for newbies in pawn.