SA-MP Forums Archive
Variables - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Variables (/showthread.php?tid=532405)



Variables - Banditukas - 18.08.2014

Hi,

It'is possible to do with variables same thing like with mysql that you can show variables like abc, if i have ex: names

1. ASDASD
2. ZZXCZXC
3. QQQQQ
4. BBBBB
5. DDDDD

Then show player that

Код:
1. ASDASD
2. BBBBB
3. DDDD
4. ZZZZ
5. QQQQ



Re: Variables - SickAttack - 18.08.2014

Yes, it is.

Example:
pawn Код:
new variable[144];
format(variable, sizeoff(variable), "ASDASD");



Re: Variables - Banditukas - 18.08.2014

I don't understand, maybe you don't read what i write?


Re: Variables - MicroD - 18.08.2014

If I understood you correctly this is what you look for: (includes foreach, y_va and y_utils from YSI)
Код:
foreach (new i : Player)
{
	va_SendClientMessageToAll(-1, "%d. %s", i, ReturnPlayerName(i));//Sends message to everyone if you want to send it for one player before -1(color) add parameter playerid and remove ToAll from function
}



Re: Variables - Banditukas - 18.08.2014

.....

I have variable:

new TESTVARIALBE[ MAX_PLAYERS ][ 50 ][ MAX_PLAYER_NAME ];

Every player can have a variable 50 with different player names. And i want to from this variable to show player if there is not null show a names alphabet


Re: Variables - MicroD - 18.08.2014

I seriously do not understand you, and if you want to mess with 3D arrays check this tutorial:
https://sampforum.blast.hk/showthread.php?tid=318212


Re: Variables - Banditukas - 18.08.2014

I want do same effect like mysql have select ** from ** ORDER BY Name