Jump to content
  • 0

pomoc FormatPlayerInfoBox


Anonimus24

Dotaz

Ahoj vím zadnešek dávám hodně nových akci!
ale potřebuju pomoc nwm proč ale od tý domy co příkazy mám v CMD:
Tak mi to hazí errory na 

C:\Users\Jituška\Desktop\Gta sa-mp server\gamemodes\12.pwn(2935) : error 017: undefined symbol "FormatPlayerInfoBox"
C:\Users\Jituška\Desktop\Gta sa-mp server\gamemodes\12.pwn(2950) : error 017: undefined symbol "FormatPlayerInfoBox"
C:\Users\Jituška\Desktop\Gta sa-mp server\gamemodes\12.pwn(2963) : error 017: undefined symbol "FormatPlayerInfoBox"
C:\Users\Jituška\Desktop\Gta sa-mp server\gamemodes\12.pwn(2976) : error 017: undefined symbol "FormatPlayerInfoBox"
C:\Users\Jituška\Desktop\Gta sa-mp server\gamemodes\12.pwn(2995) : error 017: undefined symbol "IsPlayerInSphere"
C:\Users\Jituška\Desktop\Gta sa-mp server\gamemodes\12.pwn(3483) : error 017: undefined symbol "CreateBank"

Prosím o pomoc kdo tomu rozumí přidejte na skype: jirka.chvapil1 děkuji

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Globální moderátor

Možná se nauč pawn, než se pustíš do úpravy módů. Budu se divit, jestli si tě někdo přidá.

 

Nezná to tyhle funkce FormatPlayerInfoBox,  IsPlayerInSphere, CreateBank

 

 

EDIT: Matess :d

Edited by HighPrint
Link to comment
Share on other sites

  • 0

Hele jituško, undefined si můžeš přeložit jako "nedefinováno" tudíž ti chybí kus kodu, kterej tu funkci definuje a říká co se má dít. Možná jí tam dokonce máš, ale někde jsi např zapomněl závorku..

Link to comment
Share on other sites

  • 0

Takže pošlu ti to sem v jednom. uprav si to dle sebe. máš to z Street Life

 

 



forward CreateBank(bankid, Float:x, Float:y, Float:z);
public CreateBank(bankid, Float:x, Float:y, Float:z)
{
	BankPickup[bankid] = CreatePickup(1274, 23, x, y, z, -1);
	Create3DTextLabel("Banka",COLOR_GREEN_DARK,x,y,z,40,0);
	return 1;
}

forward FormatPlayerInfoBox(playerid, text1[], text2[], time);
public FormatPlayerInfoBox(playerid, text1[], text2[], time)
{
	if(IsPlayerConnected(playerid))
	{
	    TextDrawSetString(InfoBoxNadpis[playerid], text1);
	    TextDrawHideForPlayer(playerid, InfoBoxNadpis[playerid]);
	    TextDrawShowForPlayer(playerid, InfoBoxNadpis[playerid]);

	    TextDrawSetString(InfoBoxText[playerid], text2);
	    TextDrawHideForPlayer(playerid, InfoBoxText[playerid]);
	    TextDrawShowForPlayer(playerid, InfoBoxText[playerid]);

	    if(time > 0) SetTimerEx("HideInfoBoxForPlayer", time, 0, "i", playerid);
	}
	return 1;
}

forward HideInfoBoxForPlayer(playerid);
public HideInfoBoxForPlayer(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		TextDrawHideForPlayer(playerid, InfoBoxNadpis[playerid]);
		TextDrawHideForPlayer(playerid, InfoBoxText[playerid]);
	}
	return 1;
}

forward IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius);
public IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius)
{
	return IsPlayerInRangeOfPoint(playerid, radius, x, y, z);
}

 

 

 

Stačí jen HLEDAT

Edited by arci224
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...