SA-MP Forums Archive
[HELP] Not working - 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] Not working (/showthread.php?tid=341142)



[HELP] Not working - CaRaM3LL - 09.05.2012

I have a problem, I made ​​a plugin with the SDK and Invoke and Invoke it seems it does not work ... GivePlayerWeapon exactly.

The script is this: http://pastebin.com/VhjDUTQY

And to use the function:

pawn Код:
native GiveWeapon ( playerid, gunid, ammo );

YCMD:test ( playerid, params[], help )
{
    #pragma unused params
    GiveWeapon ( playerid, 24, 500 );
    return 1;
}
When you give the command, nothing happens, where is the problem?


Re: [HELP] Not working - Mandrakke - 09.05.2012

that is not an help forum, your topic will be deleted soon.


Re: [HELP] Not working - Gamer_X - 10.05.2012

"Plugin Development - Server plugins release and discussion."
It's not about C++ here but the SA-MP SDK, if he won't get help here, where would he ?

Anyways, CaRaM3LL try to debug the code line by line, check if the params are what they suppost to be.

- Gamer_X


Re: [HELP] Not working - Yasahiro - 10.05.2012

In PAWN you've defined your native as GiveWeapon, but in your C++ you've called it P_GiveWeapon?


Re: [HELP] Not working - CaRaM3LL - 11.05.2012

Quote:
Originally Posted by Yasahiro
Посмотреть сообщение
In PAWN you've defined your native as GiveWeapon, but in your C++ you've called it P_GiveWeapon?
Yes, I solved the problem !

Thanks you all for helping me to solve the problem