Thread: 3 dim array ?
View Single Post
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-17-2018 , 20:06   3 dim array ?
Reply With Quote #1

hello...im making an mini-cup plugin...when its finished, it should store all origins from players who participated, im doing it with:

PHP Code:
new origin32 ][ ]

//and then on finish:

new playerNumplayers32 ], id
get_players
playersplayerNum 
for( new 
0playerNumi++ )
{
    
id players]
    if( 
teleporting_pid ] )
    {
        
entity_get_vectoridEV_VEC_originoriginid ] ) //ok get player's origin
    
}


so the point is to teleport all participans to each positions from the cup (with like set_task 2-3sec)
also, when everyone is teleported to an player's position it should stamp that player's name...i have no idea how to connect name + origin, and call them one by one...any help is welcome

EDIT:
im havin num_players which is adding the count on starting_cup(), so i will add somewhere:

PHP Code:
set_task2.0"teleporting_p"id__"a"num_players 
but later what to do...to make (for) loop, and check if
PHP Code:
bool:player_is_playingid ]
//...then set 
player_is_playingrandomid ) ] = false //obvius i dont know how to controll differents IDs in a loop 
to decrease one by one (so fewer teleports)..but it seems not that correct

Last edited by JocAnis; 09-18-2018 at 07:59. Reason: trying something, but my brain is stupid
JocAnis is offline