Jump to content
  • 0

Intrebare


ScandaL

Question

8 answers to this question

Recommended Posts

Adica ? Cum sa ii dai numele la "Icoana" aceea ?

1.Pui sus in script

[pawn]new Nume;[/pawn]

2.Sub OnGameModeInit:

[pawn]Nume = CreateMapIcon(32, 0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);[/pawn]

Dar n-ai de ce sa o numesti daca nu o folosesti si in alte parti din GM.

Link to comment
Share on other sites

Poi o folosesc in cateva locuri dar cand dau compile imi da urmatoarea eroare:

[pawn]D:\Samp GM\MR.ILLUSION\MrIllusion\gamemodes\eRP.pwn(8569) : error 017: undefined symbol "CreateMapIcon"[/pawn]

Uite unde vreau sa o folosesc:

if(HouseInfo[h][hOwned] == 1)
		{
            format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n Rent Price: $%d \n Description: %s \n To Rent Type /rentroom",HouseInfo[h][hMessage],HouseInfo[h][hOwner], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
			HouseLabel[h] = Create3DTextLabel(PropertyString ,0x7D0000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
			HousePickup[h] = AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            CreateMapIcon(32, 0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
		}

Link to comment
Share on other sites

Nu merge cu setplayermapicon .....vreau ca la fiecare casa sa puna un icon !

Uite cu SetPlayerMapIcon:

D:\Samp GM\MR.ILLUSION\MrIllusion\gamemodes\eRP.pwn(8679) : warning 202: number of arguments does not match definition
D:\Samp GM\MR.ILLUSION\MrIllusion\gamemodes\eRP.pwn(8679) : warning 202: number of arguments does not match definition

Link to comment
Share on other sites

SetPlayerMapIcon(h,0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],31,COLOR_RED);

cea buna:

SetPlayerMapIcon(h, 12,  HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 52, COLOR_RED, MAPICON_GLOBAL );

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

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.