Question about createprop.
#5

Quote:
Originally Posted by maij
assuming that the black screen is the server (control),
The information given from the strtok is really returned.

/createprop 50,
then in the screen it says it got 50 in string value, but 0 in integer value.

Meaning either the strval function is fucked or there are unwanted characters in the string.
In that case, you gotta remove the unwanted characters.

But the main question is, how did it got there?

My guess is, that there is a space inside the returned string, returning " 50" in total.
This would mean the function strval doesn't work and returns zero because of the space.

That would be removing the space in order to solve this issue.
1. Replace the strtok with a working one.
2. Use strmid to extract everything but the first character.
I use now sscanf and it is solver thanks for help guys
Reply


Messages In This Thread
Question about createprop. - by jorambo - 13.06.2010, 08:54
Re: Question about createprop. - by TheInnocentOne - 13.06.2010, 09:14
Re: Question about createprop. - by jorambo - 13.06.2010, 10:50
Re: Question about createprop. - by maij - 13.06.2010, 11:05
Re: Question about createprop. - by jorambo - 13.06.2010, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)