23.07.2011, 21:19
(
Последний раз редактировалось [BLS]Touchdown; 24.07.2011 в 12:58.
)
Hey guyz,
i got a problem:
the dialog i posted below will not be shown when i get into the pickup, but pawno compiles it correctly.
anyone knows?
my OnPlayerPickupPickUp:
i got a problem:
the dialog i posted below will not be shown when i get into the pickup, but pawno compiles it correctly.
Код:
forward PickupChanger(playerid); public PickupChanger(playerid) { if(/*pickupid == changepick && */ShowAgain[playerid] == 1) { new string[256]; if(PlayerInfo[playerid][pLevel] < 5) format(string, 256, "{FFFFFF}Hunter\t\t{FFFFFF}Level 1\n{FFFFFF}Guardian\t{FF0000}Level 5\n{FFFFFF}Assassin\t{FF0000}Level 7\n{FFFFFF}Sniper\t\t{FF0000}Level 10{FFFFFF}\nPriest\t{FFFF00}Level 12"); else if(PlayerInfo[playerid][pLevel] < 7) format(string, 256, "{FFFFFF}Hunter\t\t{FFFFFF}Level 1\n{FFFFFF}Guardian\t{FFFFFF}Level 5\n{FFFFFF}Assassin\t{FF0000}Level 7\n{FFFFFF}Sniper\t\t{FF0000}Level 10{FFFFFF}\nPriest\t{FFFF00}Level 12"); else if(PlayerInfo[playerid][pLevel] <10) format(string, 256, "Hunter\t\tLevel 1\nGuardian\tLevel 5\nAssassin\tLevel 7\nSniper\t\t{FF0000}Level 10{FFFFFF}\nPriest\t{FFFF00}Level 12"); else if(PlayerInfo[playerid][pLevel] <12) format(string, 256, "{FFFFFF}Hunter\t\tLevel 1\nGuardian\tLevel 5\nAssassin\tLevel 7\nSniper\t\tLevel 10\nPriest\t{FFFF00}Level 12"); ShowPlayerDialog(playerid, 2008, 2, "Class Changer", string, "Accept", "Cancel"); ShowAgain[playerid] = 0; } return 1; }
my OnPlayerPickupPickUp:
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == changepick) { PickupChanger(playerid); } else if(pickupid == shoppick) { PickupShop(playerid); } else if(pickupid == upgradepick) { PickupUpgrade(playerid); } else if(pickupid == armourpick) { ArmourUpgrader(playerid); } return 1; }