25.03.2009, 17:19
Hey,
I started 2 days ago with PAWN and I have a question about the SetPlayerPos-command.
I'm making a !gotoloc-script which reads locations from some .ini-files. But if I want to import them into the SetPlayerPos-command using variables, then I got errors like "error 035: argument type mismatch (argument 2)".
Here is an example of the command I use in my !gotoloc-script:
Can I use variables in the SetPlayerPos-command and if that's possible, how?
It will be nice if someone could tell me the answer, thank you.
I started 2 days ago with PAWN and I have a question about the SetPlayerPos-command.
I'm making a !gotoloc-script which reads locations from some .ini-files. But if I want to import them into the SetPlayerPos-command using variables, then I got errors like "error 035: argument type mismatch (argument 2)".
Here is an example of the command I use in my !gotoloc-script:
Код:
SetPlayerPos(playerid,resultX,resultY,resultZ);
It will be nice if someone could tell me the answer, thank you.