Pickup Problem
#1

I know somebody had an almost identical problem to mine, but I haven't been able to find an answer.

The problem is, it creates the first pickup, but fails to create the second.

pawn Код:
TeleportPickup[id][0] = CreatePickup(1318, 1, pos_x, pos_y, pos_z, vw);
    TeleportPickup[id][1] = CreatePickup(1318, 1, topos_y, topos_y, topos_z, tovw);
Reply
#2

Please learn to debug.. If you're offering professional scripting services you should know how to debug your own code...

if( TeleportPickup[id][1] == -1 ) print( "Pickup 2 was not created." );

^ You do that because there is nothing wrong with your syntax. If it prints Pickup 2 was not created, reply. Else check if something else could be effecting it.
Reply
#3

TeleportPickup[id][1] = CreatePickup(1318, 1, topos_y, topos_y, topos_z, tovw);

See the error in your ways?
Reply
#4

Quote:
Originally Posted by JamesC
Посмотреть сообщение
Please learn to debug.. If you're offering professional scripting services you should know how to debug your own code...

if( TeleportPickup[id][1] == -1 ) print( "Pickup 2 was not created." );

^ You do that because there is nothing wrong with your syntax. If it prints Pickup 2 was not created, reply. Else check if something else could be effecting it.
Alright. Thanks.


Quote:
Originally Posted by Backwardsman97
Посмотреть сообщение
TeleportPickup[id][1] = CreatePickup(1318, 1, topos_y, topos_y, topos_z, tovw);

See the error in your ways?
Lmao. Thanks for pointing that out, I can't believe I missed it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)