Reseting all player variables?
#8

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
quickest way?
new cleanslot[pPlayerEnum];
PlayerI[playerid]=cleanslot;

Where pPlayerEnum is your enum name and PlayerI is your variable array.
This will only work if you don't use 1D arrays for each variable but 1 big 2D/3D array for all or most of your variables.
The same thing that I and Stinged already posted.
He's trying to clear multiple variables at once, not enum.

Quote:
Originally Posted by andrejc999
Посмотреть сообщение
Am, I'm not sure how that works I mean I understood you but I didn't know that's how variables work?
Quote:
Originally Posted by andrejc999
Посмотреть сообщение
Oh I see so it's hardcore to clear them all? I mean like I have some that are mixed like letter+number+letter+idk...
You can clear the variables like this:
Код:
letter = number = 0;
This mean that both letter and number will be set to 0. This work both for strings (letter) and integers (number).
It's the same as doing:
Код:
letter = 0;
number = 0;
Quote:
Originally Posted by andrejc999
Посмотреть сообщение
Is there a plugin that does the job for us?
Plugin is not needed for this.
Reply


Messages In This Thread
Reseting all player variables? - by andrejc999 - 28.05.2016, 20:51
Re: Reseting all player variables? - by Darkwood17 - 28.05.2016, 20:58
Re: Reseting all player variables? - by Stinged - 28.05.2016, 21:01
Re: Reseting all player variables? - by andrejc999 - 28.05.2016, 21:07
Re: Reseting all player variables? - by Darkwood17 - 28.05.2016, 21:29
Re: Reseting all player variables? - by andrejc999 - 28.05.2016, 21:30
Re: Reseting all player variables? - by PrO.GameR - 28.05.2016, 21:35
Re: Reseting all player variables? - by Darkwood17 - 28.05.2016, 21:48
Re: Reseting all player variables? - by andrejc999 - 28.05.2016, 22:51
Re: Reseting all player variables? - by Darkwood17 - 28.05.2016, 23:27

Forum Jump:


Users browsing this thread: 1 Guest(s)