OnPlayerTakeDamage doesn't work
#7

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
Declare the command without the 'params' parameter:
PHP код:
CMD:dropgun(playerid) {
    return 
true;

And then use it like so:
PHP код:
return cmd_dropgun(playerid); 
works
BTW, the callback shows an error on my script
PHP код:
D:\samp037_svr_R2-1-1_win32\gamemodes\UGRP.pwn(7621) : error 025: function heading differs from prototype 
All I did was adding "bodypart" to the end
Current:
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart
Previous:
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponid
Reply


Messages In This Thread
OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:07
Re: OnPlayerTakeDamage doesn't work - by Jefff - 03.04.2016, 22:11
Re: OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:13
Re: OnPlayerTakeDamage doesn't work - by Jefff - 03.04.2016, 22:15
Re: OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:19
Re: OnPlayerTakeDamage doesn't work - by AndySedeyn - 03.04.2016, 22:20
Re: OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:22
Re: OnPlayerTakeDamage doesn't work - by AndySedeyn - 03.04.2016, 22:26
Re: OnPlayerTakeDamage doesn't work - by NeXoR - 03.04.2016, 22:26
Re: OnPlayerTakeDamage doesn't work - by AndySedeyn - 03.04.2016, 22:28

Forum Jump:


Users browsing this thread: 2 Guest(s)