Variables
#1

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
Reply
#2

Yes, it is.

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

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

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
}
Reply
#5

.....

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
Reply
#6

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
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)