27.05.2012, 22:11
Hello,i've created a drugpack but Pawno doesn't let me compile.
OnGameModeInit:
OnPlayerPickUpPickup
I keep getting this errors:
error 017: undefined symbol "DrugPack"
warning 204: symbol is assigned a value that is never used: "DrugPack"
OnGameModeInit:
pawn Код:
new DrugPack = CreatePickup(1279, 14, -2179.2732,-260.0395,36.5156, 0);
pawn Код:
if(pickupid == DrugPack)
{
SendClientMessage(playerid, red, "You have now the drug pack,now you can start the drug smuggling job with /drug and collecting drug also!");
GameTextForPlayer(playerid, "~g~Drug pack taken!", 5000, 6);
PlayerInfo[playerid][pDrug] = 20;
HasTakenDrugPack[playerid] =1;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
if(HasTakenDrugPack[playerid] == 1)
{
SendClientMessage(playerid,0xFF0000FF,"You have already a drug pack,you can't pickup it more.");
}
}
error 017: undefined symbol "DrugPack"
warning 204: symbol is assigned a value that is never used: "DrugPack"