If it is minus, you get a message..
#1

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?
Reply
#2

if (moneytotransfer<0) {
SendClientMessage(playerid, COLOR_RED, "Don't try to steal other people's money!");
return 1;
}
Reply
#3

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
Reply
#4

Quote:
Originally Posted by RobinOwnz
Посмотреть сообщение
Shit, that was dumb of me lol.. ty :P
I'd change 0 to 1, so you can't send $0 to another player
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)