strings without a length
#5

You should include the size of the string too.

For example:
pawn Код:
// THIS IS WRONG:
new id, reason[64];
if(sscanf(params, "rs", id, reason)) // return an error message about usage
pawn Код:
// THIS IS CORRECT:
new id, reason[64];
if(sscanf(params, "rs[64]", id, reason)) // return an error message about usage
Reply


Messages In This Thread
strings without a length - by xyzcod2 - 13.10.2013, 11:50
Re: strings without a length - by detter - 13.10.2013, 11:52
Re: strings without a length - by Twizted - 13.10.2013, 11:53
Re: strings without a length - by edzis84 - 13.10.2013, 11:53
Re: strings without a length - by Konstantinos - 13.10.2013, 11:54
Re: strings without a length - by Zex Tan - 13.10.2013, 11:55
Re: strings without a length - by xyzcod2 - 13.10.2013, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)