#1

i cant compile my mod see error

Код:
E:\DOCUME~1\*****\MYDOCU~1\*****~1\SAMP03~1\GAMEMO~1\AidzMS.pwn(4640) : error 017: undefined symbol "Obj1"
Код:
	if (strcmp("/DestroyDm", cmdtext, true, 10) == 0)
	{
    DestroyObject( Obj1 );   ===== ERROR how to fix it
    DestroyObject(3095,-1974.81420898,156.96458435,23.69404984,90.00000000,0.00000000,0.00000000);
    DestroyObject(3095,-1960.91845703,138.16474915,30.68750000,0.00000000,90.00000000,180.00000000);
    DestroyObject(3095,-1960.86621094,117.32519531,23.68750000,90.00000000,90.00000000,179.99450684);
    DestroyObject(3095,-1960.84082031,127.23242188,24.68750000,90.00000000,90.00000000,179.99450684);
    DestroyObject(3095,-1960.81909180,148.95767212,24.68750000,90.00000000,90.00000000,180.00000000);
    DestroyObject(3095,-1960.90393066,160.82286072,23.68750000,90.00000000,90.00000000,180.00000000);
    DestroyObject(3095,-1979.92443848,138.29560852,24.88750076,90.00000000,90.00000000,0.00000000);
    DestroyObject(3095,-1926.58142090,110.22968292,29.28125000,90.00000000,90.00000000,90.00000000);
    DestroyObject(3095,-1934.29687500,110.28515625,29.29999924,90.00000000,90.00000000,90.00000000);
    DestroyObject(3095,-1942.99548340,110.37456512,29.30000114,90.00000000,90.00000000,90.00000000);
    DestroyObject(3095,-1950.40197754,110.39454651,29.29999924,90.00000000,90.00000000,90.00000000);
    DestroyObject(3095,-1957.71618652,110.46925354,29.36874962,90.00000000,90.00000000,90.00000000);
    DestroyObject(3095,-1955.49768066,165.21762085,29.39405060,90.00000000,270.00000000,90.00000000);
    DestroyObject(3095,-1947.70849609,165.22105408,29.39406204,90.00000000,270.00000000,90.00000000);
    DestroyObject(3095,-1939.00646973,165.26200867,29.37344170,90.00000000,270.00000000,90.00000000);
    DestroyObject(3095,-1930.14807129,165.25106812,29.31093788,90.00000000,270.00000000,90.00000000);
    DestroyObject(3095,-1925.03967285,165.36193848,29.32902336,90.00000000,270.00000000,90.00000000);
    DestroyObject(16093,-1939.30920410,118.64165497,29.55428696,0.00000000,0.00000000,180.00000000);
    DestroyObject(16093,-1938.78698730,158.75949097,29.36209488,0.00000000,0.00000000,0.00000000);
    DestroyObject(3594,-1938.83215332,145.72259521,25.91242599,0.00000000,0.00000000,90.00000000);
    DestroyObject(3594,-1939.95532227,130.60821533,25.90461731,0.00000000,0.00000000,90.00000000);
    DestroyObject(16638,-1939.35998535,119.70784760,27.92168427,0.00000000,0.00000000,180.00000000);
    DestroyObject(16638,-1938.50561523,157.86375427,27.63337517,0.00000000,0.00000000,0.00000000);
Reply
#2

pawn Код:
//At top of script:
new Obj1;

Obj1 = CreateObject(/*params*/); //The object you are destroying
Reply
#3

Quote:
Originally Posted by *IsBack
Посмотреть сообщение
pawn Код:
//At top of script:
new Obj1;

Obj1 = CreateObject(/*params*/); //The object you are destroying
Some extra info about this:

Put the Obj1 = CreatObject line under OnGameModeInIt
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)