15.10.2014, 09:22
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
How to define it ?
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.