Jump to content

Question

Posted

Cum definesc urmatoarea funcite in gamemode

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

8 answers to this question

Recommended Posts

Posted

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.

Posted

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]);
		}

Posted

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

Posted

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

Posted

tu ai zis de eroare!cat despre aia ce vrei tu: SetPlayerMapIcon(h, 12,  HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 52, COLOR_RED, MAPICON_LOCAL );

u78ch.jpg

CHECK MY CHANNEL!

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.