Saving multiple strings
#6

Hello!

Quote:
Originally Posted by Glenn332
Посмотреть сообщение
I need something like rawrs[MAX_PLAYERS][100] is this possible? anyone?
Yes, it is possible.

You have to create a global variable:
PHP код:
new AllCommands[MAX_PLAYERS][100]; 
Now, you can save 100 Commands (so the params) for each user.

Do you know how you save this?
Here is a solution:
PHP код:
//in the command
for(new i;i<100;i++)
{
    if(
strlen(AllCommands[playerid][i]) > 0)continue;
    
format(AllCommands[playerid][i],128,params);
    break;

- Mencent
Reply


Messages In This Thread
Saving multiple strings - by Glenn332 - 19.07.2015, 13:42
AW: Saving multiple strings - by BigBrainAFK - 19.07.2015, 13:44
Re: Saving multiple strings - by Glenn332 - 19.07.2015, 13:49
Re: Saving multiple strings - by Glenn332 - 20.07.2015, 14:36
Re: Saving multiple strings - by Glenn332 - 21.07.2015, 12:44
AW: Re: Saving multiple strings - by Mencent - 21.07.2015, 14:25
Re: AW: Re: Saving multiple strings - by Glenn332 - 21.07.2015, 14:37
AW: Saving multiple strings - by Mencent - 21.07.2015, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)