Jump to content
  • 0

4 Erorii cu tot cu linii! Va rog putin ajutor!!


Question

Posted

C:\Documents and Settings\Utilizator\My Documents\Gm by Mafia\gamemodes\agaming.pwn(17272) : error 017: undefined symbol "SetObjectMaterialText"

C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(17274) : error 017: undefined symbol "SetObjectMaterialText"

C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(17273) : warning 204: symbol is assigned a value that is never used: "DMVSign"

C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(17271) : warning 204: symbol is assigned a value that is never used: "BunVenit"

C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(53785) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"

C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(67977) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Linia 17272:      SetObjectMaterialText(BunVenit, "Bine ai venit!", 0, 50, "Arial", 24, 0, -32256, 0, 1);

Linia 17274:      SetObjectMaterialText(DMVSign, "DMV  >", 0, 50, "Arial", 24, 1, -65536, 0, 1);

Linia 53785:      SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);

Linia 67977:      if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED)

6 answers to this question

Recommended Posts

Posted

Incearca sa adaugi urmatoarea linie la inceputul scriptului:

#define SetObjectMaterialText(objectid, text[], materialindex = 0, materialsize = OBJECT_MATERIAL_SIZE_256x128, fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
Inlocuieste:
SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED);
cu urmatoarea linie:
SetPlayerSpecialAction(targetplayer, SPECIAL_ACTION_CUFFED);
Daca nu functioneaza, incearca sa adaugi la inceputul scriptului:
#define SPECIAL_ACTION_CUFFED           24

Posted

Dupa ce am pus prima linie imi da urmatoarea eroare

C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(10) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"

dar a disparut eroarea cu SetObjectMaterial si am rezolvat si cu celelalte 2 erori:X:X

Posted

Incearca sa adaugi aceasta linie:

#define SetObjectMaterialText(objectid, text[], materialindex = 0, materialsize = OBJECT_MATERIAL_SIZE_256x128, fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);

Gresisem eu ceva in linia anterioara si acum am editat.

Posted

Imi da cele de 2 erorii si 2 warnings care erau inainte si:(....am pus linia la inceput cum ai spus

C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(17273) : error 017: undefined symbol "SetObjectMaterialText"
C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(17275) : error 017: undefined symbol "SetObjectMaterialText"
C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(17274) : warning 204: symbol is assigned a value that is never used: "DMVSign"
C:\Documents and Settings\Utilizator\My Documents\Gm by Black\gamemodes\realgaming.pwn(17272) : warning 204: symbol is assigned a value that is never used: "BunVenit"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
2 Errors. uite inca ceva daca te ajuta...?
new BunVenit = CreateObject(19353, 1750.7316, -1901.2597, 12.5365, -1.2000, -92.7998, -177.6778);
SetObjectMaterialText(BunVenit, "Bine ai venit!", 0, 50, "Arial", 24, 0, -32256, 0, 1);
new DMVSign = CreateObject(19353, 1774.8356, -1904.9079, 13.6881, 0.0000, 0.0000, 180.4365);
SetObjectMaterialText(DMVSign, "DMV  >", 0, 50, "Arial", 24, 1, -65536, 0, 1);

Posted

Sterge urmatoarele linii din gamemode:

new DMVSign = CreateObject(19353, 1774.8356, -1904.9079, 13.6881, 0.0000, 0.0000, 180.4365);
new BunVenit = CreateObject(19353, 1750.7316, -1901.2597, 12.5365, -1.2000, -92.7998, -177.6778);

Cat despre celelalte erori, actualizeaza fisierele a_samp si a_objects la versiunea 0.3e.

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.