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.
  • Similar Content

    • By CenzoR
      Salut, ma poate ajuta cineva cum se face exact chestia aia cand intri si iesi dintr-un biz/casa, sa-ti dea freeze pana se incarca mappingul?
    • By Alex969
      #include <a_samp>
      #include <a_mysql>
      #include <streamer>
      #include <playerzone>
      #include <beaZone>
      #include <foreach>
      #include <sscanf2>
      #include <AutoAFK>
      #include <mSelection>
      #include <days>
      #include <a_http>
      #include <md5>
      #include <playerprogress>
      #include <YSI\y_hooks>
      #include <YSI\y_iterate>
      #include <YSI\y_commands>
      #include <YSI\y_master>
      #include <fly>
      #include <YSI\y_timers>
       
      C:\Users\alex\Downloads\Secret Gamemode\Secret Gamemode\gamemodes\secret.pwn(15) : fatal error 100: cannot read from file: "AutoAFK"
      Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
      1 Error.
      [Finished in 1.3s]
       
      Ce pot face sa rezolv eroarea asta?nu o pot rezolva deloc..
      M am uitat in folderul include de la compiler si am AutoAFK.inc ...
    • By CenzoR
      gmfrom0\gamemodes\from0.pwn(32) : fatal error 100: cannot read from file: "../modules/colorss.pwn"
       
      am aceasta eroare.. din ce cauza este? nu o pot rezolva deloc, ma poate ajuta cineva?
      m-am uitat si in folderul modules, nu gasesc niciun pwn cu colorss
    • By Tefyuu
      CMD:aduty(playerid, params[])
      {
          if(IsPlayerAdmin(playerid)) 
          {
                      new type[25];
                      
      28971 :        if(sscanf(params, "s[25]", type)) return SendClientMessage(playerid, -1,"Syntax: /aduty <on/off>");
              if(strcmp(type, "off", true) == 0)
              {
                  ResetPlayerWeapons(playerid); 
      28979:                    SetPlayerArmour(playerid, 0); 
                          SetPlayerHealth(playerid, 100); 
                          SetPlayerSkin(playerid, 25); 
      28985:          SendClientMessageToAll(COLOR_RED, "((AdmBot: Unul dintre administratori este acum off duty.))"); 
              }
              else if(strcmp(type, "on", true) == 0)
              {
                          GivePlayerWeapon(playerid, 38, 9999); 
                          SetPlayerArmour(playerid, 9999999); 
                          SetPlayerHealth(playerid, 9999999); 
                          SetPlayerSkin(playerid, 217); 
      29001:            SendClientMessageToAll(COLOR_GREEN, "((AdmBot: Unul dintre administratori este acum on duty.))"); 
              }
          }
          else 
          {
              SendClientMessage(playerid, COLOR_RED, "Eroare: Nu esti un Administrator.");
          }
          return 1;
      }
       
       
       
       
      in aceasta comanda primesc erorile astea 
       
      C:\Users\tefyuu\Desktop\burned.ro\gamemodes\wa-rpg.pwn(28971) : warning 217: loose indentation
      C:\Users\tefyuu\Desktop\burned.ro\gamemodes\wa-rpg.pwn(28979) : warning 217: loose indentation
      C:\Users\tefyuu\Desktop\burned.ro\gamemodes\wa-rpg.pwn(28985) : warning 217: loose indentation
      C:\Users\tefyuu\Desktop\burned.ro\gamemodes\wa-rpg.pwn(29001) : warning 217: loose indentation
    • By Rby Robert
      Am un gamemode de la un prieten la care a lucrat el acum mi la dat mie sa lucrez eu pe el am facut ceea ce am stiu am dar ma bate ceva cand dau in /v nu imi apare despawn car ma poate ajuta cineva aici aveti comanda 
      CMD:v(playerid, params[])
      {
          if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi prima data.");
          if(VehiclesCount(playerid) == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu ai vehicule personale.");
          new str2[1500],str[200],id[50],vip[30],title[35],rainbow[30],premium[30], stage[30];
          strcat(str2, "Model\tStatus\tUpgrades\tID\n");
          for(new x = 0; x < PlayerInfo[playerid][pSlots]; x++) {
              if(PlayerInfo[playerid][pCarKey][x] != 0) {
                  new ide = veh_ArrayID(PlayerInfo[playerid][pCarKey][x]);
                  if((playerCarsSpawned[playerid][x]) == true ) format(id,50,"%d",CarInfo[ide][cInGameID]); else format(id,50,"{ffffff}not spawned");
                  if(CarInfo[ide][cVip] == true) format(vip, 30, "{FFE802}[VIP] "); else format(vip,3,"");
                  if(CarInfo[ide][cHaveRainBow] == true) format(rainbow, 30, "{791DD5}[R] "); else format(rainbow,3,"");
                  if(CarInfo[ide][cPremium] == 1) format(premium, 30, "{F28644}[P] "); else format(premium,3,"");
                  if(CarInfo[ide][cStage] > 0) format(stage, sizeof(stage), "{509AE4}[S: %d/3]", CarInfo[ide][cStage]); else format(stage,3,"");
                  format(str, 200, "%s\t%s\t%s%s%s%s \t%s\n",aVehicleNames[playerCarsModel[playerid][x] - 400],(playerCarsSpawned[playerid][x]) ? ("{33AA33}[spawned]") : ("{9D0000}[despawned]"),vip,rainbow,premium,stage,id);
                  strcat(str2,str);
              }
              else strcat(str2,"\n[ empty ]\n");
          }
          format(title,sizeof title,"Your vehicles [%d/%d]",VehiclesCount(playerid),PlayerInfo[playerid][pSlots]);
          ShowPlayerDialog(playerid,DIALOG_VEHSPAWN,DIALOG_STYLE_TABLIST_HEADERS, title, str2, "Select","Exit");
          return 1;
      }
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.