AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trouble with Array Sizes (https://forums.alliedmods.net/showthread.php?t=27120)

Kronos 04-15-2006 00:31

Trouble with Array Sizes
 
Code:
<snip>

The
Code:
dist = get_distance(cur_origin,pl_origins[players[i]])
line and the
Code:
get_user_origin(victim,pl_origins[victim],0)
lines are giving me trouble for array sizes. What can I do?

BTW: The plugin does this: on keydown if you are within a close vicinity to a corpse the corpse will turn into a zombie.

Xanimos 04-15-2006 00:49

where do you initiate pl_origin ?

GHW_Chronic 04-15-2006 02:03

your array should look like so:
Code:
new pl_origins[33][3]

Kronos 04-15-2006 02:24

Quote:

Originally Posted by GHW_Chronic
your array should look like so:
Code:
new pl_origins[33][3]

Ah yes, excellent! Thank you very much!


All times are GMT -4. The time now is 05:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.