04.01.2011, 17:54
My Onplayerspawn Script....
Errors i get....
Please help me !!
Quote:
public OnPlayerSpawn(playerid) { SetPlayerInterior(playerid,0); TogglePlayerClock(playerid,0); new Random = random(sizeof(RandomSpawns)); SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]); SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]); new Float:RandomSpawns[][] = { {1495.8939,-2435.2817,13.5547}; // Randomspawn {1426.5933,-2465.2419,13.5547}; // Randomspawn {1428.1489,-2436.5586,13.5547}; // Randomspawn {1419.6462,-2449.0503,19.3470}; // Randomspawn {1392.2720,-2444.8025,19.3470};// Randomspawn {1433.3538,-2413.0479,13.5547}; // Randomspawn {1464.5680,-2406.5442,13.5547}; // Randomspawn {1468.0763,-2465.2300,13.5547}; // Randomspawn {1442.5254,-2462.9463,13.6563}; // Randomspawn {1458.5173,-2438.4583,13.6563}; // Randomspawn }; return 1; } |
Quote:
C:\Users\Fie\Desktop\New Folder\gamemodes\bare.pwn(39) : error 017: undefined symbol "RandomSpawns" C:\Users\Fie\Desktop\New Folder\gamemodes\bare.pwn(39) : error 029: invalid expression, assumed zero C:\Users\Fie\Desktop\New Folder\gamemodes\bare.pwn(39) : warning 215: expression has no effect C:\Users\Fie\Desktop\New Folder\gamemodes\bare.pwn(40) : error 017: undefined symbol "RandomSpawns" C:\Users\Fie\Desktop\New Folder\gamemodes\bare.pwn(40) : warning 215: expression has no effect C:\Users\Fie\Desktop\New Folder\gamemodes\bare.pwn(40) : error 001: expected token: ";", but found "]" C:\Users\Fie\Desktop\New Folder\gamemodes\bare.pwn(40) : error 029: invalid expression, assumed zero C:\Users\Fie\Desktop\New Folder\gamemodes\bare.pwn(40) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. |