HELP! Putting functions in a TextDraw
#1

Hey I'm trying to make a visual inventory in SA-MP using the LA-RP script for now:

Код:
Inventory = TextDrawCreate(394.000000,164.000000,"~r~Weapon: ~w~%s, ~r~Ammo: ~w~%d", gunname, PlayerInfo[playerid][pInvAmmo]);
Then I get an error:

Код:
C:\Users\Derk\Desktop\Los Angeles Roleplay Server Files\gamemodes\larp.pwn(10621) : error 017: undefined symbol "gunname"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
If this doesn't work how do I do it then?
Reply
#2

Do this is
it is goodi think
srry for bad english.

Код:
new gunname;
Reply
#3

Код:
new gunname[32];
GetWeaponName(GetPlayerWeapon(playerid), gunname, sizeof(gunname));
Reply
#4

use format.

https://sampwiki.blast.hk/wiki/Format
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)