15.04.2013, 02:24
Alright so I made this stock, now I wanna use it. But i dont udnerstand one thing, how can I use it now? I mean I have these errors and now I want to use for example:
How to do that?
or like
Код:
return Errors(case0);
or like
Код:
Errors(NoMoney);
Код:
stock Errors(playerid) { case 0: { if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "<!>No money!"); } case 1: { if(GetPlayerWeapon(playerid) = 0) return SendClientMessage(playerid, COLOR_RED, "<!>No gun!"); } return 1; }