26.08.2010, 20:12
Hi... Me again xD... i have this code
Now... the problem is that when i pick one of the DeathWeapPick it will show me the Cannon Menu... and i dont know why... any idea?..
Код:
if(pickupid == CanGerm1) { CanPick[playerid] = 0; ShowMenuForPlayer(Cannon,playerid); } else if(pickupid == CanGerm2) { CanPick[playerid] = 1; ShowMenuForPlayer(Cannon,playerid); } else if(pickupid == CanUSA1) { CanPick[playerid] = 2; ShowMenuForPlayer(Cannon,playerid); } else if(pickupid == CanUSA2) { CanPick[playerid] = 3; ShowMenuForPlayer(Cannon,playerid); } else if(pickupid == USAFIX) { SetPlayerPos(playerid,2565.7222,-2381.8369,29.5991); SetPlayerFacingAngle(playerid,43.3101); } else { for (new I = 0; I<MAX_PLAYERS; I++) { if(pickupid == DeathWeapPick[I]) { DestroyPickup(DeathWeapPick[I]); } } } return 1; }