[Tutorial] Admin /announce with gametext - Easy
#6

You forget to tell sscanf how big the text string should be.

You are doing this:

PHP Code:
if(sscanf(params"iis"timetymsg)) return SendClientMessage(playerid, -1"Usage: /announce [Time] [Msg Type] [TEXT]"); 
When it should be:

PHP Code:
if(sscanf(params"iis[25]"timetymsg)) return SendClientMessage(playerid, -1"Usage: /announce [Time] [Msg Type] [TEXT]"); 
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.
Reply


Messages In This Thread
Admin /announce with gametext - Easy - by Karan007 - 14.11.2015, 13:28
Re: Admin /announce with gametext - Easy - by Hellceaser - 14.11.2015, 13:38
Re: Admin /announce with gametext - Easy - by SecretBoss - 14.11.2015, 13:49
Re: Admin /announce with gametext - Easy - by Karan007 - 14.11.2015, 15:29
Re: Admin /announce with gametext - Easy - by HydraHumza - 14.11.2015, 16:04
Re: Admin /announce with gametext - Easy - by thefirestate - 14.11.2015, 16:20
Re: Admin /announce with gametext - Easy - by Karan007 - 15.11.2015, 06:14
Re: Admin /announce with gametext - Easy - by Abagail - 15.11.2015, 17:28
Re: Admin /announce with gametext - Easy - by iKarim - 16.11.2015, 04:48
Re: Admin /announce with gametext - Easy - by Karan007 - 16.11.2015, 09:08

Forum Jump:


Users browsing this thread: 3 Guest(s)