Posts: 542
Threads: 14
Joined: Aug 2016
Reputation:
0
Thanks ^^,
Another thing,i would like to make admin logs right ik how to make them but how would my administrators get them? what's a good method that i should use,i was thinking of a command and download them all but apparently files only get saved in scripted files,not everyone would have this.
Posts: 1,208
Threads: 36
Joined: Apr 2015
PHP код:
//randomex(min,max)
#define randomex(%0,%1) (random((%1)-(%0)+1)+(%0))
Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
Okei, I feel stupid right now. I'll take the last one and come back later if I still have erroneous values.
Posts: 1,506
Threads: 13
Joined: Jun 2015
Ehh, can someone explain me how this code works? I am little confused.
PHP код:
intr = locker_money;
if(PlayerStat[playerid][DonLV] == 1)
{
intr *= 1;
intr /= 500;
format(str, sizeof(str), "Interest Rate [0.2%%]: %d$.", intr);
SendClientMessage(playerid, BRONZE, str);
}
if(PlayerStat[playerid][DonLV] == 2)
{
intr *= 2;
intr /= 500;
format(str, sizeof(str), "Interest Rate [0.4%%]: %d$.", intr);
SendClientMessage(playerid, SILVER, str);
}
if(PlayerStat[playerid][DonLV] == 3)
{
intr *= 3;
intr /= 500;
format(str, sizeof(str), "Interest Rate [0.6%%]: %d$.", intr);
SendClientMessage(playerid, GOLD, str);
}
Posts: 115
Threads: 7
Joined: Mar 2016
Reputation:
0
Well....Please I know I may sound even more silly today...
But like I know what is use of enum and especially arrays...
But I really don't know how they what we might say actually works...Yeah you can say that like what's the main reason or main thing it does both enums and arrays...
Please explain it in easiest way possible..
However I watched several tutorials and videos tutorials too..
But got nothing much to learn from them.
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
@Dayrion using Zeex's compiler it is possible, but usually it's way more readable to not use single giant PlayerInfo or something similar, but to split it into smaller arrays, like PlayerInfo, PlayerInventory, etc. etc.
Posts: 1,046
Threads: 250
Joined: Nov 2014
Reputation:
0
How can I create a command with more options using sscanf?