warning
#8

Quote:
Originally Posted by Stinged
Посмотреть сообщение
No codes are actually needed for this.
We already told him how to fix it.
C:\Users\hillko\Desktop\bRush.pwn(41096) : error 079: inconsistent return types (array & non-array)
C:\Users\hillko\Desktop\bRush.pwn(41101) : error 079: inconsistent return types (array & non-array)
C:\Users\hillko\Desktop\bRush.pwn(41112) : error 090: public functions may not return arrays (symbol "CreateVehicleObject")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Код HTML:
  41095 public CreateVehicleObject(modelid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:stream_distance){
41096 if (vehicleid == 0 || vehicleid == INVALID_VEHICLE_ID || modelid ==0) return 0;
41097	new ids;
41098	for (new i=1; i < MAX_VEHICLE_OBJECTS; i++) if (objects[i][object_modelid] == 0)	{
41099	    ids = i;
41101	    break;	}
41102	if (ids == 0) return 0;
41103	objects[ids][object_x]    		= fOffsetX;
41104	objects[ids][object_y]    		= fOffsetY;
41105	objects[ids][object_z]    		= fOffsetZ;
41106	objects[ids][object_rx]    		= fRotX;
41107	objects[ids][object_ry]    		= fRotY;
41108	objects[ids][object_rz]    		= fRotZ;
41109	objects[ids][object_distance]    = stream_distance;
41110	objects[ids][object_vehicleid] 	= vehicleid;
41111	objects[ids][object_objectid] 	= 0;
41112	objects[ids][object_modelid] 	= modelid;
41113	return id;
41114}
Reply


Messages In This Thread
warning - by hillko - 01.09.2014, 17:12
Re: warning - by Stinged - 01.09.2014, 17:13
Re: warning - by hillko - 01.09.2014, 17:14
Re: warning - by GGRoleplay - 01.09.2014, 17:16
Re: warning - by Stinged - 01.09.2014, 17:16
Re: warning - by SanAndreasMP - 01.09.2014, 17:17
Re: warning - by Stinged - 01.09.2014, 17:21
Re: warning - by hillko - 01.09.2014, 17:25
Re: warning - by hillko - 01.09.2014, 17:36

Forum Jump:


Users browsing this thread: 5 Guest(s)