SA-MP Forums Archive
"return" 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: "return" help. (/showthread.php?tid=431470)



"return" help. - LeeXian99 - 18.04.2013

Hello guys, how to make this in one?

pawn Код:
return GivePlayerWeapon(playerid, 2, 1);
and

pawn Код:
return SendClientMessage(playerid, white, "You've got a weapon!");
It's in "case x:"


Re: "return" help. - [Ro]DuReX - 18.04.2013

pawn Код:
return GivePlayerWeapon(playerid, 2, 1) && SendClientMessage(playerid, white, "You've got a weapon!");



Re: "return" help. - Guest123 - 18.04.2013

camni ke

pawn Код:
return GivePlayerWeapon(playerid, 2, 1),SendClientMessage(playerid, white, "You've got a weapon!");



Re: "return" help. - LeeXian99 - 18.04.2013

Quote:
Originally Posted by Guest123
Посмотреть сообщение
camni ke

pawn Код:
return GivePlayerWeapon(playerid, 2, 1),SendClientMessage(playerid, white, "You've got a weapon!");
nie salah, DuReX yang betul, dah test.

Translation: This is wrong, DuReX's right, already tested his code!


Re: "return" help. - HurtLocker - 18.04.2013

Quote:
Originally Posted by LeeXian99
Посмотреть сообщение
nie salah, DuReX yang betul, dah test.

Translation: This is wrong, DuReX's right, already tested his code!
If you test guest's code, you will see that it works too, it's not wrong. I use guest's way.


Re: "return" help. - Guest123 - 18.04.2013

tnx HurtLocker :3


Re: "return" help. - LeeXian99 - 18.04.2013

Oh, I forgot about the controls in PAWNO. xd My bad

Thanks for solving my problem!