Sscanf Warning
#4

With sscanf, you must declare the string length in the actual format itself. So when you create a string:

pawn Код:
new message[128],string[128];
You must then also declare it:

pawn Код:
if(sscanf(params,"us[128]",id,message)) // Notice the [128]
You only need to do this for strings.
Reply


Messages In This Thread
Sscanf Warning - by CSSI - 04.08.2011, 08:05
Re: Sscanf Warning - by Jack_Leslie - 04.08.2011, 08:09
Re: Sscanf Warning - by CSSI - 04.08.2011, 08:12
Re: Sscanf Warning - by Famalamalam - 04.08.2011, 08:22

Forum Jump:


Users browsing this thread: 1 Guest(s)