SA-MP Forums Archive
Help! PawnCommand seems that dosen't work. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: Help! PawnCommand seems that dosen't work. (/showthread.php?tid=178694)



[SOLVED]Help! PawnCommand seems that dosen't work. - shindo - 23.09.2010

Sorry for my poor English.

I'm writing a plugin, and I want to call some functions that's in PAWN.

Now I had get the "pAMX" from "AmxLoad"
But when i use amx_FindNative to find "SendRconCommand", it return 2147483647.
And "SetPlayerPos" works, it return 17.

So I still wonder what the problem.

Thanks!

//----------------------------------------------------------------------------------------
thanks to mk124, he pointed that I have to use SendRconCommand in a amx and then load it.
When called AmxLoad, point the pAMX to the interface amx, and anything works well.

Also thanks who replyed this post.


Re: Help! PawnCommand seems that dosen't work. - shindo - 24.09.2010

Now I had get the "pAMX" from "AmxLoad"
But when i use amx_FindNative to find "SendRconCommand", it return 2147483647.
And "SetPlayerPos" works, it return 17.

So I still wonder what the problem.


Re: Help! PawnCommand seems that dosen't work. - RoBo - 24.09.2010

What the hell are you expecting it to return?


Re: Help! PawnCommand seems that dosen't work. - TheInnocentOne - 24.09.2010

I'm pretty sure both those functions aren't meant to return anything useful.


Re: Help! PawnCommand seems that dosen't work. - shindo - 27.09.2010

thanks to mk124, he pointed that I have to use SendRconCommand in a amx and then load it.
When called AmxLoad, point the pAMX to the interface amx, and anything works well.

Also thanks men above.