15.06.2010, 23:45
Look at this cmd
error:
Please help
Код:
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; }
Код:
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.