#1

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
Reply
#2

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

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;
		}
	}
Reply
#4

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)