console_cmds.c
changeset 1130 2f1b7c54a12d
parent 1095 b59632d9df1b
child 1138 f65d56d51a40
equal deleted inserted replaced
1129:917bfe211641 1130:2f1b7c54a12d
   467 	Player *p;
   467 	Player *p;
   468 	NetworkClientState *cs;
   468 	NetworkClientState *cs;
   469 	NetworkClientInfo *ci;
   469 	NetworkClientInfo *ci;
   470 
   470 
   471 	if (argc == 2) {
   471 	if (argc == 2) {
   472 		uint32 index = atoi(argv[1]);
   472 		byte index = atoi(argv[1]);
   473 
   473 
   474 		/* Check valid range */
   474 		/* Check valid range */
   475 		if (index < 1 || index > MAX_PLAYERS) {
   475 		if (index < 1 || index > MAX_PLAYERS) {
   476 			IConsolePrintF(_iconsole_color_error, "Company does not exist. Company-ID must be between 1 and %d.", MAX_PLAYERS);
   476 			IConsolePrintF(_iconsole_color_error, "Company does not exist. Company-ID must be between 1 and %d.", MAX_PLAYERS);
   477 			return NULL;
   477 			return NULL;