2020-12-19, 05:48 PM
Hey all,
I'm new to the whole pawn scripting and I try to make a command that gives me my position.
But, when I use the command it doesn't send anything in the chat.
I've also tried to remove the %f, %f, %f part but then it only sends me "Position:" without the actual player position.
Also when I compile/run my script, it gives me 3 warnings(warning 202: number of arguments does not match definition)
Any help would be appreciated.
I'm new to the whole pawn scripting and I try to make a command that gives me my position.
But, when I use the command it doesn't send anything in the chat.
Code:
if (strcmp("/getpos", cmdtext, true, 7) == 0)
{
// Do something here
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SendClientMessage(playerid, -1,"Position: %f, %f, %f.", x, y, z);
return 1;
}
return 0;
I've also tried to remove the %f, %f, %f part but then it only sends me "Position:" without the actual player position.
Also when I compile/run my script, it gives me 3 warnings(warning 202: number of arguments does not match definition)
Any help would be appreciated.