Help with a /sellgun command
#1

Look at this cmd

Код:
dcmd_sellgun(playerid, params[])
{
  new pName[24], PlayerFile[50], Buyer, Weapon, BuyerName[24], str[128], str2[256];
	GetPlayerName(playerid, pName, sizeof(pName));
	format(PlayerFile, sizeof(PlayerFile), "/LVRP/users/%s.ini", pName);
	
	if(PlayerInfo[playerid][Job] != 1) return 1;
 	if(sscanf(params, "us",Buyer,Weapon)) return SCM(playerid, COLOR_WHITE, "Usage: /sellgun [playerid/Partofname]");
 	if(!IsPlayerConnected(Buyer)) return SendClientMessage(playerid, COLOR_RED, "They are not online.");
 	GetPlayerName(Buyer,BuyerName, sizeof(BuyerName));
 	
 	if(PlayerInfo[playerid][GunLevel] >= 1)
 	{
179	  if(Weapon == shotgun)
 	  {
 	    GivePlayerWeapon(Buyer, 25, 300000);
 	    format(str, sizeof str, "You gave a %s and ammo to %s.", Weapon, Buyer);
 	    format(str2, sizeof str2, "You recived a %s and ammo from %s.", Weapon, pName);
 	    SCM(playerid, COLOR_WHITE, str);
 	    SCM(Buyer, COLOR_WHITE, str2);
		}
	}
	return 1;
}
error:

Код:
C:\Users\Administrator\Documents\SA-MP Server\filterscripts\Jobs.pwn(179) : error 017: undefined symbol "shotgun"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Please help
Reply


Messages In This Thread
Help with a /sellgun command - by Tyler_Idy - 15.06.2010, 23:45
Re: Help with a /sellgun command - by Antonio [G-RP] - 16.06.2010, 00:00
Re: Help with a /sellgun command - by Tyler_Idy - 16.06.2010, 00:23
Re: Help with a /sellgun command - by Antonio [G-RP] - 16.06.2010, 00:33
Re: Help with a /sellgun command - by Tyler_Idy - 16.06.2010, 02:18
Re: Help with a /sellgun command - by Antonio [G-RP] - 16.06.2010, 02:19
Re: Help with a /sellgun command - by Tyler_Idy - 16.06.2010, 02:24
Re: Help with a /sellgun command - by Antonio [G-RP] - 16.06.2010, 02:40
Re: Help with a /sellgun command - by Tyler_Idy - 16.06.2010, 02:43
Re: Help with a /sellgun command - by Antonio [G-RP] - 16.06.2010, 02:46

Forum Jump:


Users browsing this thread: 5 Guest(s)