SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/04/2017, 02:13 PM   #11
se3a
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 6
Default Re: Need Some Help Please!

Quote:
Originally Posted by se3a View Post
i cant understand this!!
PHP Code:
// first vehicle
vInfo[playerid][0][model];

// second vehicle
vInfo[playerid][1][model];

// third vehicle
vInfo[playerid][2][model];

// loop all vehicle models of a player
for(new slot 0slot 3; ++slot)
{
    
vInfo[playerid][slot][model];

example
but with new way ?
any one help me need example!!
se3a is offline   Reply With Quote
Old 21/04/2017, 10:34 AM   #12
se3a
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 6
Default Re: Need Some Help Please!

any one reply please ?
se3a is offline   Reply With Quote
Old 21/04/2017, 10:51 AM   #13
Aviicix
Little Clucker
 
Join Date: Apr 2017
Posts: 8
Reputation: 9
Default Re: Need Some Help Please!

It's a 3D Array, check this out: http://forum.sa-mp.com/showthread.php?t=318212
Aviicix is offline   Reply With Quote
Old 21/04/2017, 11:20 AM   #14
se3a
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 6
Default Re: Need Some Help Please!

Quote:
Originally Posted by Aviicix View Post
It's a 3D Array, check this out: http://forum.sa-mp.com/showthread.php?t=318212
the problem is saving multi!! how!
se3a is offline   Reply With Quote
Old 21/04/2017, 12:27 PM   #15
Aviicix
Little Clucker
 
Join Date: Apr 2017
Posts: 8
Reputation: 9
Default Re: Need Some Help Please!

Like you would save it once, just put the code inside a loop which loops n times where n is the max number of vehicles per player and use the loop value as second index.

PHP Code:
for(new 03i++)
{
   
// here you can access vInfo[playerid][B][i][/B][vehicle_enum_index];

Aviicix is offline   Reply With Quote
Old 22/04/2017, 01:41 AM   #16
se3a
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 6
Default Re: Need Some Help Please!

Quote:
Originally Posted by Aviicix View Post
Like you would save it once, just put the code inside a loop which loops n times where n is the max number of vehicles per player and use the loop value as second index.

PHP Code:
for(new 03i++)
{
   
// here you can access vInfo[playerid][B][i][/B][vehicle_enum_index];

please can you example 1 vehicles ?
se3a is offline   Reply With Quote
Old 23/04/2017, 09:52 AM   #17
se3a
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 6
Default Re: Need Some Help Please!

bump !
se3a is offline   Reply With Quote
Old 25/04/2017, 11:19 PM   #18
se3a
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 6
Default Re: Need Some Help Please!

Bump
se3a is offline   Reply With Quote
Old 26/04/2017, 09:45 PM   #19
se3a
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 6
Default Re: Need Some Help Please!

bump
se3a is offline   Reply With Quote
Old 28/04/2017, 01:05 AM   #20
se3a
Big Clucker
 
Join Date: Mar 2017
Posts: 75
Reputation: 6
Default Re: Need Some Help Please!

please help
se3a is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:52 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.