Jump to content
  • 0

Error Snow Mod


YumeDany

Question

Am bagat in GameMode un SnowMod , am rezolvat din ele dar mai am urmatoarele errori

D:\-----\gamemodes\----(1225) : error 017: undefined symbol "snowObject"
D:\------\gamemodes\-------(1235) : error 017: undefined symbol "snowObject"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
LINIA 1225
for(new i = 0; i < MAX_SNOW_OBJECTS; i++)
	{
		snowObject[playerid][i] = CreateDynamicObject(18864, pPos[0] + random(25), pPos[1] + random (25), pPos[2] - 5, random(100), random(100), random(100), -1, -1, playerid);
	}
LINIA 1235
for(new i = 0; i < MAX_SNOW_OBJECTS; i++)
	{
		DestroyDynamicObject(snowObject[playerid][i]);
	}
DEFINIT snowObject
new snowObject[MAX_PLAYERS][MAX_SNOW_OBJECTS];

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Baga definita new snowObject[MAX_PLAYERS][MAX_SNOW_OBJECTS]; drept deasupra lui

new snowObject[MAX_PLAYERS][MAX_SNOW_OBJECTS];
for(new i = 0; i < MAX_SNOW_OBJECTS; i++)
	{
		snowObject[playerid][i] = CreateDynamicObject(18864, pPos[0] + random(25), pPos[1] + random (25), pPos[2] - 5, random(100), random(100), random(100), -1, -1, playerid);
	}

lol

Link to comment
Share on other sites

eXtreMe" post="101666" timestamp="1322688796"]

Baga definita new snowObject[MAX_PLAYERS][MAX_SNOW_OBJECTS]; drept deasupra lui

new snowObject[MAX_PLAYERS][MAX_SNOW_OBJECTS];
for(new i = 0; i < MAX_SNOW_OBJECTS; i++)
	{
		snowObject[playerid][i] = CreateDynamicObject(18864, pPos[0] + random(25), pPos[1] + random (25), pPos[2] - 5, random(100), random(100), random(100), -1, -1, playerid);
	}

Ce prostie ai putut sa spui.

Asigura-te ca ai definit MAX_SNOW_OBJECTS, si ca snowObject este pus in varful scriptului, de preferat sub toate #include.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.