stock CreateVelocity [Help]
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
You've not actually posted your "CreateVelocity" function. And why are you using arrays to hold three variables?
Quote:
Originally Posted by ******
Посмотреть сообщение
No, but I've just spotted the problem - you use "d" not "f" in "sscanf". Try "extract":

pawn Код:
extract params -> new Float:vx, Float:vy, Float:vz; else return SendClientMessage(playerid, 0xFF0000AA, "Command Usage: /velocity [x:speed] [y:speed] [z:speed]");
Vastly reduces bugs due to incorrect specifiers by removing the specifiers. You can also still use arrays:

pawn Код:
extract params -> new Float:v[3]; else return SendClientMessage(playerid, 0xFF0000AA, "Command Usage: /velocity [x:speed] [y:speed] [z:speed]");
Aha.
Thanks its work now.
Reply


Messages In This Thread
stock CreateVelocity [Help] - by [D]ry[D]esert - 02.11.2012, 11:18
Re: stock CreateVelocity [Help] - by [D]ry[D]esert - 02.11.2012, 12:27
Re: stock CreateVelocity [Help] - by [D]ry[D]esert - 02.11.2012, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)