19.04.2013, 17:40
Quote:
Код:
stock IsValidWheelID(wheelid) { switch(wheelid) { case 1073, 1074: return 1; case 1053: return 1; case 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085: return 1; case 1097, 1098: return 1; case 1025: return 1; default: return 0; } return 0; } And..... Код:
SendClientMessage(playerid, X11_RED, "ERROR: That slot doesn't contain a wheel."); return 1; } } else { SendClientMessage(playerid, X11_RED, "ERROR: Invalid slot."); return 1; } return 1; |
2. Are you serious? because if the error is throw there, it needs to return there, not keep going to the end of the code.