Jump to content

Question

Posted

hai norok'

deci am incercat sa fac pt fiecare casaun icon

if(HouseInfo[h][hOwned] == 0)

{

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

}

if(HouseInfo[h][hOwned] == 1)

{

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

}

dar primesc 4 erori :

black.pwn(4317) : error 017: undefined symbol "h"

black.pwn(4319) : error 017: undefined symbol "h"

black.pwn(4321) : error 017: undefined symbol "h"

black.pwn(4323) : error 017: undefined symbol "h"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

si daca inlocuiesc "h" cu "playerid" , nu mai imi apar erorile , dar numi apar nici icon'urile

putin ajutor va rog ? :D

metallica-logo.jpg

5 answers to this question

Recommended Posts

Posted

fa asa

new MapIconsShown[MAX_PLAYERS];
la onplayerconnected pui
MapIconsShown[playerid] = 0;
iar la public OnPlayerSpawn(playerid) pui
	if(MapIconsShown[playerid] != 1)
	{
	    MapIconsShown[playerid] = 1;
	    for(new h = 0; h < sizeof(HouseInfo); h++)
	{
   			SetPlayerMapIcon(playerid,h + 1,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],31,COLOR_REDD); //editeaza tu
		}
	}

 

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.