DynamicOrg compile error
#1

So after trying to create some organizations with Jakku's Dynamic Organization Filterscript, I got quite a few errors.

Here is what I have so far.

I guessed I had to add another #define

Код:
#define WAGE 25 //Define the wage here
#define MAX_ORGS 1000 //Change only if you need more than 10 orgs
#define MAX_ORG_WEAPONS 5 //Max amount of weapons for orgs
#define ORG_NAME_LENGTH 32 //Max name length for organization and it's leader
#define MAX_ORG_VEHICLES 100
#define MAX_ZONES_PER_ORG 10
#define NEW_YORK_GOVERNMENT//This is for the government organization

#define SAVE_LEADERS_TO "org_leaders.txt"
And here is where I try to create the actual stuff.

Код:
/*
	
	ALWAYS add your organization BELOW the old one, otherwise the IDs will change = leaders mix up ! ! ! ! !
	
	Syntax for CreateOrganization: CreateOrganization(name[32], skin, Float:x,Float:y,Float:z, wp1,a1,wp2,a2,wp3,a3)
	
	Syntax for CreateOrgVehicle: CreateOrgVehicle(orgname[32], modelid, Float:x,Float:y,Float:z,Float:rotation, color1,color2)
	
	Syntax for CreateOrganizationZone: CreateOrganizationZone(orgname[32], Float:minx,Float:miny,Float:maxx,Float:maxy, color)
	
	*/
	
	//Create ORGS here:
    CreateOrganization(NEW_YORK_GOVERNMENT[32], 165, 879.0914, 4622.3052, 5.6044, 0,0,0,0,0,0)
	
	//
	
	//Create ORG VEHICLES here:
 	CreateOrgVehicle(NEW_YORK_GOVERNMENT[32], 405, 887.9117, 4618.3843, 4.6844, 0.0000, -5.0000, 180.0000, 0, 0);
 	CreateOrgVehicle(NEW_YORK_GOVERNMENT[32],405,887.9057, 4611.4712, 4.6844,0.0000, -5.0000, 180.0000,0,0);
	CreateOrgVehicle(NEW_YORK_GOVERNMENT[32],405,887.9545, 4605.2056, 4.6844,0.0000, -5.0000, 180.0000,0,0);
	//

	//Create ORG ZONES here:
	CreateOrganizationZone(NEW_YORK_GOVERNMENT[32],165,879.0914, 4622.3052,879.0914,0);
	//
Any help would be great.

Compile Errors:
Код:
C:\Documents and Settings\user\My Documents\tmp_fm_DynamicOrganizations.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\My Documents\tmp_fm_DynamicOrganizations.pwn(128) : warning 215: expression has no effect
C:\Documents and Settings\user\My Documents\tmp_fm_DynamicOrganizations.pwn(128) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\user\My Documents\tmp_fm_DynamicOrganizations.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\My Documents\tmp_fm_DynamicOrganizations.pwn(128) : fatal error 107: too many error messages on one line
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)