How would I..
#7

Quote:
Originally Posted by Donny
Good man.

Would be better like this though IMO:

pawn Код:
if ( !strcmp( cmdtext, COMMAND, true, LENGTH ) )
{
  if ( GetPlayeMoney( playerid ) < 800 ) ) return SendClientMessage(playerid,COLOR_RED,"You Need At Least $800");
  //success code goes here
  return 1;
}
I like coding for false, it makes your code smaller so it takes like lines and is easier to debug as there is less of it etc but that's just my style, each to their own.
im exactly like that two :]
Reply


Messages In This Thread
How would I.. - by _Vortex - 14.09.2009, 23:17
Re: How would I.. - by Donny_k - 15.09.2009, 00:11
Re: How would I.. - by shady91 - 15.09.2009, 00:13
Re: How would I.. - by Donny_k - 15.09.2009, 00:20
Re: How would I.. - by shady91 - 15.09.2009, 00:37
Re: How would I.. - by Donny_k - 15.09.2009, 00:46
Re: How would I.. - by iLinx - 15.09.2009, 00:47
Re: How would I.. - by Hiitch - 15.09.2009, 00:59
Re: How would I.. - by shady91 - 15.09.2009, 01:11
Re: How would I.. - by _Vortex - 15.09.2009, 01:12

Forum Jump:


Users browsing this thread: 1 Guest(s)