Map icon: forks and drop of water?
#1

Hello, I wanted to learn how to create textdraw with some map icon, I searched and found but I could not learn anything, I have a problem, I can not find the forks and the drop of water I want, I would like their ID, someone knows how I can achieve ?

Reply
#2

The forks are food map icon, and the water drop is the map icon for the player location.

These are referred to as sprites.

The 3 dots are the airport markers.
Reply
#3

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
The forks are food map icon, and the water drop is the map icon for the player location.

These are referred to as sprites.

The 3 dots are the airport markers.
Yes, me problem not fixed, necessity id.
Reply
#4

drop: hud:radar_centre
forks: hud:radar_dateFood
Reply
#5

Help me, thank you too!
Reply
#6

Quote:
Originally Posted by Amads
Посмотреть сообщение
drop: hud:radar_centre
forks: hud:radar_dateFood
PHP код:
PlayerTextDrawSetPreviewModel(playeridpTextDraw[20], hud:radar_centre);
PlayerTextDrawSetPreviewModel(playeridpTextDraw[19], hud:radar_dateFood); 
Quote:

\gamemode SAMP\gamemodes\Roleplay.pwn(890) : error 017: undefined symbol "radar_dateFood"
\gamemode SAMP\gamemodes\Roleplay.pwn(903) : error 017: undefined symbol "radar_centre"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Reply
#7

Quote:
Originally Posted by SukMathcuck
Посмотреть сообщение
PHP код:
PlayerTextDrawSetPreviewModel(playeridpTextDraw[20], hud:radar_centre);
PlayerTextDrawSetPreviewModel(playeridpTextDraw[19], hud:radar_dateFood); 
hud:radar_centre is not a symbol, it should be a string:

Код:
"hud:radar_centre"
Same for the other one.

Secondly, you must set the TEXT of the TextDraw to the above said string. It's not a model.

Put it in CreatePlayerTextDraw or use PlayerTextDrawSetString, e.g.:

Код:
PlayerTextDrawSetString(playerid, pTextDraw[20], "hud:radar_centre");
Reply
#8

Okay, you were reputed, but you still have a problem, why are you showing CJ? I think I did something wrong.

PHP код:
    pTextDraw[19] = CreatePlayerTextDraw(playerid536.000000108.000000"hud:radar_dateFood");
    
PlayerTextDrawBackgroundColor(playeridpTextDraw[19], 0);
    
PlayerTextDrawFont(playeridpTextDraw[19], 5);
    
PlayerTextDrawLetterSize(playeridpTextDraw[19], 0.5399991.400000);
    
PlayerTextDrawColor(playeridpTextDraw[19], -1);
    
PlayerTextDrawSetOutline(playeridpTextDraw[19], 1);
    
PlayerTextDrawSetProportional(playeridpTextDraw[19], 1);
    
PlayerTextDrawUseBox(playeridpTextDraw[19], 1);
    
PlayerTextDrawBoxColor(playeridpTextDraw[19], 0);
    
PlayerTextDrawTextSize(playeridpTextDraw[19], 51.00000037.000000);
    
PlayerTextDrawSetString(playeridpTextDraw[19], "hud:radar_dateFood");
    
PlayerTextDrawSetPreviewRot(playeridpTextDraw[19], 0.000090.000090.0000);
    
pTextDraw[20] = CreatePlayerTextDraw(playerid537.000000140.000000"hud:radar_centre");
    
PlayerTextDrawBackgroundColor(playeridpTextDraw[20], 0);
    
PlayerTextDrawFont(playeridpTextDraw[20], 5);
    
PlayerTextDrawLetterSize(playeridpTextDraw[20], 0.5399991.400000);
    
PlayerTextDrawColor(playeridpTextDraw[20], -1);
    
PlayerTextDrawSetOutline(playeridpTextDraw[20], 1);
    
PlayerTextDrawSetProportional(playeridpTextDraw[20], 1);
    
PlayerTextDrawUseBox(playeridpTextDraw[20], 1);
    
PlayerTextDrawBoxColor(playeridpTextDraw[20], 0);
    
PlayerTextDrawTextSize(playeridpTextDraw[20], 51.00000037.000000);
    
PlayerTextDrawSetString(playeridpTextDraw[20], "hud:radar_centre");
    
PlayerTextDrawSetPreviewRot(playeridpTextDraw[20], 0.00000.00000.0000); 
Reply
#9

Sorry, ignore what I said above.

You must change the Font of your TextDraws from 5 to 4, or use the defines (from a_samp.inc):

Код:
#define TEXT_DRAW_FONT_SPRITE_DRAW	 4
#define TEXT_DRAW_FONT_MODEL_PREVIEW 5
I was thinking about the old design, this changed during the RCs of 0.3d.
Reply
#10

You don't even rep me for pointing out what the icons actually were? C'mon...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)