SA-MP Forums Archive
/steal - 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: /steal (/showthread.php?tid=613187)



/steal - Micko123 - 25.07.2016

So i tried to make this /steal [ID] command but i get this warning
Код:
C:\Users\Admin\Desktop\HueHue\gamemodes\mode.pwn(937) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
On this line
PHP код:
GivePlayerMoney(id -ukradeno); 
I defined ukradeno like this
PHP код:
new ukradeno = (random(GetPlayerMoney(id)/10)); 
I want it to GetPlayerMoney and divide it by 10


Re: /steal - K0P - 25.07.2016

Код:
GivePlayerMoney(id, -ukradeno);



Re: /steal - Micko123 - 25.07.2016

Quote:
Originally Posted by K0P
Посмотреть сообщение
Код:
GivePlayerMoney(id, -ukradeno);
HAHHAHAAHAHAHA thank you mate . I can't belive i made mistake there hahhahaah