30.11.2011, 16:17
hey guys,
i want to make a random spawn for my classes and now i made this but it isnt working and i get all kind of warnings and errors.
on top of script:
under OnGameModeInit()
but this isnt working... this are the errors:
help pls.
niels
i want to make a random spawn for my classes and now i made this but it isnt working and i get all kind of warnings and errors.
on top of script:
Код:
new Float:RandomSpawnStreetRacers[][4] = { // Positions, (X, Y, Z and Facing Angle) {-2796.9854, 1224.8180, 20.5429, 192.0335}, {-2454.2170, 503.8759, 30.0790, 267.2932}, {-2669.7322, -6.0874, 6.1328, 89.8853} };
Код:
// streetracers class RandomSpawnStreetRacers = AddPlayerClass(105,2497.2693,-1676.9578,13.3398,23.6501,0,0,0,0,0,0); //Streetracers member (1) RandomSpawnStreetRacers = AddPlayerClass(106,1048.4546,1928.2059,10.8203,261.0777,0,0,0,0,0,0); //Streetracers member (2) RandomSpawnStreetRacers = AddPlayerClass(107,2497.2693,-1676.9578,13.3398,23.6501,0,0,0,0,0,0); //Streetracers member (3) RandomSpawnStreetRacers = AddPlayerClass(115,2497.2693,-1676.9578,13.3398,23.6501,0,0,0,0,0,0); //Streetracers member (4) RandomSpawnStreetRacers = AddPlayerClass(108,2497.2693,-1676.9578,13.3398,23.6501,0,0,0,0,0,0); //Streetracers member (5)
Код:
F:\program files\my own drifting gamemode\gamemodes\NYD_Drifting1.pwn(73) : error 021: symbol already defined: "RandomSpawnStreetRacers" F:\program files\my own drifting gamemode\gamemodes\NYD_Drifting1.pwn(2100) : warning 217: loose indentation F:\program files\my own drifting gamemode\gamemodes\NYD_Drifting1.pwn(91) : warning 204: symbol is assigned a value that is never used: "RandomSpawnStreetRacers" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
niels