Posts: 1,079
Threads: 64
Joined: Jan 2010
Like, I have an transfer command.. If I do /transfer [id] [money], I transfer money from me to the other person. So as example, I want to give 10000 to ID 1, I do /transfer 1 10000. The problem is, when I do as example: /transfer 1 -10000 I get his money. How could I fix it that you can't do minus?
Posts: 102
Threads: 7
Joined: Apr 2007
Reputation:
0
if (moneytotransfer<0) {
SendClientMessage(playerid, COLOR_RED, "Don't try to steal other people's money!");
return 1;
}
Posts: 1,079
Threads: 64
Joined: Jan 2010
Quote:
Originally Posted by mooman
if (moneytotransfer<0) {
SendClientMessage(playerid, COLOR_RED, "Don't try to steal other people's money!");
return 1;
}
|
Shit, that was dumb of me lol.. ty :P