Posts: 77
Threads: 27
Joined: Apr 2011
Reputation:
0
Hey.
I wanna make function to use string in SetPlayerPos, like:
SPP(playerid, "1234.1234, 1234.1234, 1234.1234");
But I don't have any idea to make it.
Thanks.
Posts: 1,274
Threads: 54
Joined: Jul 2012
- If you have no idea how to make yet, and won't attempt to make it either. You need to post this on Scripting Request.
Posts: 1,130
Threads: 181
Joined: Jan 2009
Reputation:
0
What do you mean Activest? I dont get what you are trying to do here. I would love to help you but....
Posts: 77
Threads: 27
Joined: Apr 2011
Reputation:
0
Hmm, for example:
new position[30];
position = "13424.0, 35892.0, 43647.0";
I want to put it in SetPlayerPos, like that:
SetPlayerPos(playerid, position);
But I can't find way for that...
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Why would you store floats as a string? If you want this for a command input ('params'), use sscanf.
Posts: 77
Threads: 27
Joined: Apr 2011
Reputation:
0
I need another way from sscanf, other ideas?
Posts: 77
Threads: 27
Joined: Apr 2011
Reputation:
0
To load this string from file to one variable that I can use this variable in SetPlayerPos in few publics.