AttachObjectToVehicle
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
[pawn]
// global:
new Player_Box[2][MAX_PLAYERS];

// OnPlayerConnect:
Player_Box[0][playerid] = Player_Box[1][playerid] = INVALID_OBJECT_ID;
PHP код:
new Player_Box[2][MAX_PLAYERS] = {{INVALID_OBJECT_ID,...},{INVALID_OBJECT_ID,...}}; // initialize all the variables with the value 65535 instead of each assignment 
Example:
PHP код:
#define foreach2(%1,%2) for(new %1; %1<%2; %1++)
main() {
    new 
Player_Box[2][MAX_PLAYERS] = {{65535,...},{65535,...}};
    
    
foreach2(p1000) {
        
foreach2(i2) {
            
printf("player %d box[%d] value %d",piPlayer_Box[i][p]);
        }
    }

Reply


Messages In This Thread
AttachObjectToVehicle - by Clarck - 16.05.2015, 13:09
Re: AttachObjectToVehicle - by Logofero - 16.05.2015, 14:24
Re: AttachObjectToVehicle - by Clarck - 17.05.2015, 13:18
Re: AttachObjectToVehicle - by Konstantinos - 17.05.2015, 13:25
Re: AttachObjectToVehicle - by Logofero - 18.05.2015, 06:25

Forum Jump:


Users browsing this thread: 3 Guest(s)