Moving fails ;p
#1

hey people,

The idea is:
After pickup7 has been picked, gate1 opens, you'll get a message with "the gate opens slowly", and pickpup8 should show up once pickup7 has been picked.

Script:
pawn Код:
if(pickupid == Pickup7)        
 {        
 Pickup8 = CreatePickup(1317, 8, 211.2209, 1867.2521, 13.1406, -1);        
 MoveObject(Gate1, 209.72979736328, 1874.9516601563, 8.571362495422, 0.50);        
 ApplyAnimation(playerid, "PED", "BOM_Plant", 3.4, 0, 1, 1, 1, 1);        
 SendClientMessage(playerid, 0xFFFFFFFF,"The gate opens slowly");        
 }        
 if(pickupid == Pickup8)        
 {        
 MoveObject(Gate2, 211.28684997559, 1866.3059082031, 9.823017120361, 1.00);        
 SendClientMessage(playerid, 0xFFFFFFFF,"You've unlocked the beginners gate!");        
 }        
 return 1;
}
what it does:
Everything goes how it should go, pickup7 picked -> gate1 opens -> you get the clientmessage -> Pickup8 shows itself.

but then, when you pickup 'pickup8'...
It should open gate2, but it doesn't.
all it does is dissapearing, comes back, dissapearing again, and then you have 2 times the message of "the gate opens slowly" which you should ONLY get at pickup7...
So pickup8 doesn't do what it should..
It seems like the script is throwing pickup7 and pickup8 through eachother..

anyone knows how to fix this since PAWNO doesn't give any warns or errors??

Panna =]
Reply
#2

Use destroying the pickup function. DestroyPickup or something. Wiki it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)