[HELP] Not working
#1

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

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

"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
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)