SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (/showthread.php?tid=113986)



Help - John Rockie - 17.12.2009

I Get this error i tried forwarding it but it dint work
Код:
D:\Server\gamemodes\gangwar.pwn(786) : error 017: undefined symbol "PlayerActionMessage"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
any suggestion will be tankful


Re: Help - DJDhan - 17.12.2009

Is it a function?
did you public PlayerActionMessage?
or is it a variable?did you write new PlayerActionMessage on top?


Re: Help - John Rockie - 17.12.2009

this is what i got
Код:
if(strcmp(cmdtext,"/equip",true, 10)==0)
  {
    if(IsPlayerInVehicle(playerid, 427))
    if(IsPlayerInVehicle(playerid, 428))
    if(IsPlayerInVehicle(playerid, 490))
  	if(gTeam[playerid] == TEAM_SWAT)
   	{
   	  GivePlayerWeapon(playerid, 34, 99999);
	  		GivePlayerWeapon(playerid, 29, 99999);
	  		GivePlayerWeapon(playerid, 31, 99999);
	  		GivePlayerWeapon(playerid, 27, 99999);
  		SetPlayerArmour(playerid, 100.0);
   		PlayerActionMessage(playerid,15.0,"Gets Guns And Puts A Armour On");
  		}
			else
			{
  			SendClientMessage(playerid, COLOR_YELLOW, "you need to be in a Enforcer, FBI rancher, or FBI truck");
  			return 1;
		}
	}



Re: Help - Nakash - 17.12.2009

Quote:
Originally Posted by John Rockie
this is what i got
Код:
if(strcmp(cmdtext,"/equip",true, 10)==0)
  {
    if(IsPlayerInVehicle(playerid, 427))
    if(IsPlayerInVehicle(playerid, 428))
    if(IsPlayerInVehicle(playerid, 490))
  	if(gTeam[playerid] == TEAM_SWAT)
   	{
   	  GivePlayerWeapon(playerid, 34, 99999);
	  		GivePlayerWeapon(playerid, 29, 99999);
	  		GivePlayerWeapon(playerid, 31, 99999);
	  		GivePlayerWeapon(playerid, 27, 99999);
  		SetPlayerArmour(playerid, 100.0);
   		PlayerActionMessage(playerid,15.0,"Gets Guns And Puts A Armour On");
  		}
			else
			{
  			SendClientMessage(playerid, COLOR_YELLOW, "you need to be in a Enforcer, FBI rancher, or FBI truck");
  			return 1;
		}
	}
I don't know what PlayerActionMessage does but you can replace it with;
pawn Код:
format(string, sizeof(string), "* %s Gets Guns And Puts A Armour On", sendername)

                ProxDetector(15.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);