problem
#1

why don't working?

Код:
#include <a_samp>

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


//Spalvos
#define COLOR_BASIC 0x0066FFAA
#define COLOR_RED 0xCC0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_SALOTA 0x40FF40FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_LIME 0x10F441AA
#define COLOR_MAGENTA 0xFF00FFFF
#define COLOR_NAVY 0x000080AA
#define COLOR_AQUA 0xF0F8FFAA
#define COLOR_CRIMSON 0xDC143CAA
#define COLOR_FLBLUE 0x6495EDAA
#define COLOR_BISQUE 0xFFE4C4AA
#define COLOR_BLACK 0x000000AA
#define COLOR_CHARTREUSE 0x7FFF00AA
#define COLOR_BROWN 0XA52A2AAA
#define COLOR_CORAL 0xFF7F50AA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_GREENYELLOW 0xADFF2FAA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_IVORY 0xFFFF82AA
#define COLOR_LAWNGREEN 0x7CFC00AA
#define COLOR_LIMEGREEN 0x32CD32AA
#define COLOR_MIDNIGHTBLUE 0X191970AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OLIVE 0x808000AA
#define COLOR_ORANGERED 0xFF4500AA
#define COLOR_PINK 0xFFC0CBAA
#define COLOR_SPRINGGREEN 0x00FF7FAA
#define COLOR_TOMATO 0xFF6347AA
#define COLOR_YELLOWGREEN 0x9ACD32AA
#define COLOR_MEDIUMAQUA 0x83BFBFAA
#define COLOR_MEDIUMMAGENTA 0x8B008BAA
#define COLOR_BRIGHTRED 0xDC143CAA
#define COLOR_SYSTEM 0xEFEFF7AA
#define RED 0xAA3333AA
#define COLOR_PURPLE 0x330066AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_RED1 0xFF0000AA
#define Text_Under_Minimap " ~n~ ~n~ www.gtafanai.lt"
#define TEXTCOL_WHITE 0xFFFFFF30
#define TEXTCOL_SILVER 0xD2D2D230
#define TEXTCOL_GREY 0x80808030
#define TEXTCOL_BLACK 0x00000030
#define TEXTCOL_GREEN 0x98B13430
#define TEXTCOL_DARKGREEN 0x00800030
#define TEXTCOL_RED 0xFF000030
#define TEXTCOL_DARKRED 0xA6000030
#define TEXTCOL_BLUE 0x6FA7FB30
#define TEXTCOL_DARKBLUE 0x0000A830
#define TEXTCOL_GOLD 0xE3B92430
#define TEXTCOL_BROWN 0xC1762B30
#define TEXTCOL_DARKBROWN 0x80400030
#define TEXTCOL_PINK 0xFF80FF30
#define TEXTCOL_VIOLET 0xAD5BFF30
#define ADMIN_COLOR 0xB9B58630

new Menu: Pirkimas;
new Menu: Pbilieta;
new cekbandom;


// objektai
enum object_info
{
	modelidd,
	Float:ox,
	Float:oy,
	Float:oz,
	Float:orx,
	Float:ory,
	Float:orz,
	Float:viewdist
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Piloto darbas :) By Mantas");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else



public OnGameModeInit()
{

	cekbandom = CreateCheckpoint(1683.2705,1440.4075,10.7715, -1,5.0,100.0,true);

	Pirkimas = CreateMenu("Skrydziai", 1, 18.0, 102.0, 165.0, 165.0);
  AddMenuItem(Pirkimas, 0, "Pirkti bilieta");
  AddMenuItem(Pirkimas, 0, "Atideti skrydi");
  AddMenuItem(Pirkimas, 0, "Parduoti bilieta");
  AddMenuItem(Pirkimas, 0, "Iseiti");

	Pbilieta = CreateMenu("Skrydziai", 1, 18.0, 102.0, 165.0, 165.0);
  AddMenuItem(Pbilieta, 0, "SF oro uostas");
  AddMenuItem(Pbilieta, 0, "LV oro uostas");
  AddMenuItem(Pbilieta, 0, "LS oro uostas");
  AddMenuItem(Pbilieta, 0, "Iseiti");

}

public OnGameModeExit()
{
	DestroyMenu(Pirkimas);
	DestroyMenu(Pbilieta);
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{

}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/pilotas", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid,COLOR_LIME,"* Sveikiname! Jūs sėkmingai įsidarbinote pilotu.");
		SendClientMessage(playerid,COLOR_LIME,"* Apie keleivius laukiančių lėktuvo, jums praneš operatorė..");
		SendClientMessage(playerid,COLOR_LIME,"* Piloto darbo komandos: /iseiti (išeina iš darbo) /info, /keleiviai");
		SendClientMessage(playerid,COLOR_LIME,"* Geros dienos! flyLAL");
		return 1;
		}
	return 0;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
{
if(GetPlayerCheckpoint(playerid) == cekbandom)
{
ShowMenuForPlayer(Pirkimas, playerid);
}
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
  new Menu:CurrentMenu = GetPlayerMenu(playerid);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	if(CurrentMenu == Pirkimas)
	{
  	switch(row)
  	{
    	case 0: //Stunt zones 1
    	{
      	ShowMenuForPlayer(Pbilieta, playerid);
			}
		}
	}
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}
#endif
Reply
#2

What error does it give ya?
Reply
#3

Try change
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
{
    if(GetPlayerCheckpoint(playerid) == cekbandom)
    {
        ShowMenuForPlayer(Pirkimas, playerid);
    }
    return 1;
}
with
pawn Код:
public OnPlayerEnterCheckPoint(playerid)
{
    if(GetPlayerCheckpoint(playerid) == cekbandom)
    {
        ShowMenuForPlayer(Pirkimas, playerid);
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by Luka[balkan-samp.com
]
Try change
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
{
    if(GetPlayerCheckpoint(playerid) == cekbandom)
    {
        ShowMenuForPlayer(Pirkimas, playerid);
    }
    return 1;
}
with
pawn Код:
public OnPlayerEnterCheckPoint(playerid)
{
    if(GetPlayerCheckpoint(playerid) == cekbandom)
    {
        ShowMenuForPlayer(Pirkimas, playerid);
    }
    return 1;
}
2 errors

Код:
G:\DOCUME~1\Mantas\Desktop\pilot.pwn(111) : error 017: undefined symbol "CreateCheckpoint"
G:\DOCUME~1\Mantas\Desktop\pilot.pwn(219) : error 017: undefined symbol "GetPlayerCheckpoint"
G:\DOCUME~1\Mantas\Desktop\pilot.pwn(223) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#5

rename GetPlayerCheckPoint to: IsPlayerInCheckpoint

and CreateCheckpoint to: SetPlayerCheckpoint
Reply
#6

Quote:
Originally Posted by Gamer007
rename GetPlayerCheckPoint to: IsPlayerInCheckpoint

and CreateCheckpoint to: SetPlayerCheckpoint
You steal words from my mouth :P
Reply
#7

don't work
Reply
#8

does not show the checkpoint
Reply
#9

try changing to:

Код:
SetPlayerCheckpoint(playerid,-1683.2705,1440.4075,10.7715,5);
NEVER IGNORE WARNINGS.

You have may missed the - infront of 1683.2705 and the function that you showed us was waaay out of its parameters

Reply
#10

error
Код:
G:\DOCUME~1\Mantas\Desktop\pilot.pwn(110) : error 017: undefined symbol "playerid"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)