Help! PawnCommand seems that dosen't work.
#1

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.
Reply
#2

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.
Reply
#3

What the hell are you expecting it to return?
Reply
#4

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)