Argument type mistmach 2
#3

Quote:
Originally Posted by Sascha
Посмотреть сообщение
pawn Код:
new PlayerText3D: teks[MAX_PLAYERS], Float: Pos[3], texxt[32];
texxt needs to be a string

and what do you want to check here?
pawn Код:
if(texxt <= 3 || texxt >= 20)

or if that should be a number and not a texxt, change this
pawn Код:
if(sscanf(params, "s[32]", texxt))
to this:
pawn Код:
if(sscanf(params, "i", texxt))
if(texxt <= 3 || texxt >= 20)

here i check the length of the text, cuz if u type nothing will crash the server.
Reply


Messages In This Thread
Argument type mistmach 2 - by dan40o - 09.02.2015, 19:59
Re: Argument type mistmach 2 - by Sascha - 09.02.2015, 20:02
Re: Argument type mistmach 2 - by dan40o - 09.02.2015, 20:04
Re: Argument type mistmach 2 - by Sascha - 09.02.2015, 20:13
Re: Argument type mistmach 2 - by dan40o - 09.02.2015, 20:15

Forum Jump:


Users browsing this thread: 2 Guest(s)