Problem with RC..HELP - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with RC..HELP (
/showthread.php?tid=340023)
Problem with RC..HELP -
SpiderWalk - 05.05.2012
Hello.I got problem with Exploziv RC when player press click(KEY_FIRE) It won`t explode I don`t know why...
Here is part with Explozions
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE)
{
if(RCXD == 1)
{
new Float:burnx, Float:burny, Float:burnz;
GetPlayerPos(playerid,burnx, burny, burnz);
CreateExplosion(burnx, burny , burnz, 7,10.0);
CreateExplosion(burnx, burny , burnz, 7,10.0);
CreateExplosion(burnx, burny , burnz, 7,10.0);
SetPlayerPos(playerid, burnx, burny, burnz+2);
DestroyVehicle(LVehicleID);
RCXD = 0;
}
}
return 1;
}
Please help me....
AW: Problem with RC..HELP -
vyper - 05.05.2012
Use ' && ' not ' & '
Re: AW: Problem with RC..HELP -
SuperViper - 05.05.2012
Quote:
Originally Posted by vyper
|
Please learn what & actually does before attempting to help somebody with a scripting issue.
On topic:
Try to change the 7 in CreateExplosion to 6, I've had the same issue with 7 before.
Re: AW: Problem with RC..HELP -
SpiderWalk - 05.05.2012
Quote:
Originally Posted by SuperViper
Please learn what & actually does before attempting to help somebody with a scripting issue.
On topic:
Try to change the 7 in CreateExplosion to 6, I've had the same issue with 7 before.
|
I did but still not working
![Sad](images/smilies/sad.gif)
Anyone other ??
AW: Re: AW: Problem with RC..HELP -
vyper - 05.05.2012
Quote:
Originally Posted by SuperViper
Please learn what & actually does before attempting to help somebody with a scripting issue.
On topic:
Try to change the 7 in CreateExplosion to 6, I've had the same issue with 7 before.
|
Oh sorry
Re: Problem with RC..HELP -
SuperViper - 05.05.2012
Are you setting RCXD to 1 before clicking? Otherwise there's no reason why this shouldn't work.
Re: Problem with RC..HELP -
Face9000 - 05.05.2012
Try to change
With:
The define:
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Re: Problem with RC..HELP -
SuperViper - 05.05.2012
Quote:
Originally Posted by Logitech90
Try to change
With:
The define:
pawn Код:
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
|
This won't change anything.
Re: Problem with RC..HELP -
Face9000 - 05.05.2012
Quote:
Originally Posted by SuperViper
This won't change anything.
|
I've got the same problem in past and it worked for me.
Re: Problem with RC..HELP -
SpiderWalk - 05.05.2012
Quote:
Originally Posted by Logitech90
Try to change
With:
The define:
pawn Код:
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
|
Not working
![Sad](images/smilies/sad.gif)
(