Undefined symbol "row"
#3

Indeed , i did it very wrong.
After reading it , i changed mostly everything , but i still get errors.

My script :

Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
//Defined Colors
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF
#if defined FILTERSCRIPT
new Menu:teleportmenu;
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	teleportmenu = CreateMenu("Teleportmenu", 2, 200.0, 100.0, 150.0, 150.0);
	AddMenuItem(teleportmenu, 0, "LS");
	AddMenuItem(teleportmenu, 0, "LS");
	AddMenuItem(teleportmenu, 0, "SF");
	AddMenuItem(teleportmenu, 0, "SF");
	AddMenuItem(teleportmenu, 0, "LV");
	AddMenuItem(teleportmenu, 0, "LV");

	AddMenuItem(teleportmenu, 1, "Grove Street");
	AddMenuItem(teleportmenu, 1, "Starfish Tower");
	AddMenuItem(teleportmenu, 1, "Wheel Arch Angels");
	AddMenuItem(teleportmenu, 1, "Jizzys");
	AddMenuItem(teleportmenu, 1, "4 Dragons");
	AddMenuItem(teleportmenu, 1, "Come-a-Lot");
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, COLOR_YELLOW, "Welcome To DeathMatch GangWars !");
	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 OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/kill", cmdtext, true, 5) == 0)
	{
		SetPlayerHealth(playerid, 0);
		SendClientMessage(playerid, COLOR_YELLOW, "You comitted a suicide");
		return 1;
	}
	return 0;
}

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

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

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

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

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

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

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

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

public OnVehicleMod(playerid, vehicleid, componentid)
{
	return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
	return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    new Menu:CurrentMenu = GetPlayerMenu(playerid);
    if (CurrentMenu == teleportmenu)
    {
        switch(row)
        {
        	case 0: //Grove Street
  			{
   				SetPlayerPos(playerid, 2493.9133, -1682.3986, 13.3382);
   				SetPlayerInterior(playerid, 0);
   				SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to Grove Street");
        	}
        	case 1: //Starfish Tower
        	{
            	SetPlayerPos(playerid, 1541.2833, -1362.4741, 329.6457);
            	SetPlayerInterior(playerid, 0);
            	SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to the top of Starfish Tower");
        	}
        	case 2: //Wheel Arch Angels
        	{
            	SetPlayerPos(playerid, -2705.5503, 206.1621, 4.1797);
            	SetPlayerInterior(playerid, 0);
            	SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to the Wheel Arch Angels tuning-shop");
       		}
        	case 3: //Jizzys
        	{
            	SetPlayerPos(playerid, -2617.5156, 1390.6353, 7.1105);
            	SetPlayerInterior(playerid, 0);
            	SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to Jizzy's Nightclub!");
        	}
        	case 4: //4Dragons
        	{
            	SetPlayerPos(playerid, 2028.5538, 1008.3543, 10.8203);
            	SetPlayerInterior(playerid, 0);
            	SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to the Four Dragons Casino");
        	}
        	case 5: //Com-a-Lot
        	{
            	SetPlayerPos(playerid, 2169.1838, 1122.5426, 12.6107);
            	SetPlayerInterior(playerid, 0);
            	SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to the Come-a-Lot casino!");
        	}
		}
    }
}
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}

public OnPlayerUpdate(playerid)
{
	return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}
And my errors :

Код:
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(52) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(53) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(54) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(55) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(56) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(57) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(58) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(60) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(61) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(62) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(63) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(64) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(65) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(207) : error 017: undefined symbol "teleportmenu"
C:\Documents and Settings\HP_Administrateur\Bureau\SAMP Server\pawno\new.pwn(250) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

15 errors.
Reply


Messages In This Thread
Undefined symbol "row" - by onvonv - 06.03.2012, 12:05
Re: Undefined symbol "row" - by Burridge - 06.03.2012, 12:10
Re : Undefined symbol "row" - by onvonv - 07.03.2012, 06:55
Re: Undefined symbol "row" - by newbienoob - 07.03.2012, 06:59
Re : Undefined symbol "row" - by onvonv - 07.03.2012, 07:24
Re: Undefined symbol "row" - by Burridge - 07.03.2012, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)