how to define world ID interior ID
#1

greetings,

I made filterscript with mapping that only needs to be spawned in Virtual world 1 and interior 1 but if i compile it saying underfind symbol worldid and interiorid


Code:
public OnFilterScriptExit() {
    for(new i; i < MAX_PLAYERS; i++) {
	    if(GetPlayerVirtualWorld(i) != 1 || GetPlayerInterior(i) != 1) {
			TogglePlayerControllable(i, false);
		}
	}
}

public OnFilterScriptInit() {

    for(new i; i < MAX_PLAYERS; i++) {
	    if(GetPlayerVirtualWorld(i) != 1 || GetPlayerInterior(i) != 1) {
			TogglePlayerControllable(i, false);
		}
	}

	//[Gym+Pool INT]
	CreateDynamicObject(7419, 2043.99, -2762.43, -41.56,   0.00, -90.00, 90.00,worldid = 1, interiorid = 1);
	CreateDynamicObject(7419, 2093.67, -2812.14, -41.56,   0.00, -90.00, 0.00,worldid = 1, interiorid = 1);
	CreateDynamicObject(9339, 2070.19, -2799.07, 0.07,   0.00, 0.00, 0.00,worldid = 1, interiorid = 1);
	CreateDynamicObject(9339, 2060.89, -2785.87, 0.07,   0.00, 0.00, 90.00,worldid = 1, interiorid = 1);

Code:
C:\Users\OtherVWMapping.pwn(22) : error 017: undefined symbol "worldid"
C:\Users\OtherVWMapping.pwn(22) : warning 215: expression has no effect
C:\Users\OtherVWMapping.pwn(22) : error 017: undefined symbol "interiorid"
C:\Users\OtherVWMapping.pwn(22) : warning 215: expression has no effect
C:\Users\OtherVWMapping.pwn(22) : error 001: expected token: ";", but found ")"
C:\Users\OtherVWMapping.pwn(22) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
How to define it ?
Reply


Messages In This Thread
how to define world ID interior ID - by kevin_1991 - 15.10.2014, 09:22
Re: how to define world ID interior ID - by Vince - 15.10.2014, 09:27
Re: how to define world ID interior ID - by Phyzic - 15.10.2014, 09:29
Re: how to define world ID interior ID - by kevin_1991 - 15.10.2014, 09:41
Re: how to define world ID interior ID - by kevin_1991 - 15.10.2014, 09:58
Re: how to define world ID interior ID - by Phyzic - 15.10.2014, 10:09
Re: how to define world ID interior ID - by kevin_1991 - 15.10.2014, 10:10
Re: how to define world ID interior ID - by kevin_1991 - 15.10.2014, 11:06
Re: how to define world ID interior ID - by kevin_1991 - 15.10.2014, 12:05

Forum Jump:


Users browsing this thread: 2 Guest(s)