Jump to content
  • 0

cmd Nedefinit putin ajutor ?


Ch1NeZu

Question

Sal incerc sa fac primul meu filterscript si imi da 1 eroare

C:\Documents and Settings\ChiNeZu\Desktop\vama.pwn(107) : error 017: undefined symbol "cmd"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
codul este
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmd, "/barrier", true) == 0)  <------ linia 107
	    {
	    if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184))
	        {
	        if(PlayerInfo[playerid][pPassport] == 0)
	            {
	    		MoveObject(vama1,54.190098, -1529.675781, 5.085436, 2.5);
                MoveObject(vama2,52.703281, -1540.749634, 5.067452, 2.5);
	            MoveObject(vama1,54.231167, -1529.687012, 9.320637, 3.5);
                SetTimer("GateClosse", 4000, 0);
				SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");
				return 1;
				}
				else
				{
				SendClientMessage(playerid, COLOR_1BLUE, "* You don't have an Passport, go in the City Hall and buy one.");
				return 1;
				}
			}
			else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053))
			    {
			    if(PlayerInfo[playerid][pPassport] == 0)
			        {
			    	MoveObject(vama2,52.695782, -1540.765869, 9.255125, 3.5);
			    	SetTimer("GateClosse", 4000, 0);
			    	SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");
			    	return 1;
			    	}
			    	else
			    	{
			    	SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");
			    	return 1;
			    	}
			}
			else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624))
			    {
			    if(PlayerInfo[playerid][pPassport] == 0)
			        {
			    	MoveObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5);
			    	SetTimer("GateClossse", 4000, 0);
			    	SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");
			    	return 1;
			    	}
			    	else
			    	{
			    	SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");
			    	return 1;
			    	}
			}
			else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999))
			    {
			    if(PlayerInfo[playerid][pPassport] == 0)
			        {
			    	MoveObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5);
			    	SetTimer("GateClossse", 4000, 0);
			    	SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");
			    	return 1;
			    	}
			    	else
			    	{
			    	SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");
			    	return 1;
			    	}
				}
				else
				{
				SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier.");
				return 1;
				}
		}
  return 0;
}

Samp.OnlyPro.ro - RolePlay - Join Us !

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.