26.10.2018, 21:36
pawn Код:
CMD:dice1(playerid)
{
new dice = 1 + random(2);
switch (dice)
{
case 1:
{
SendClientMessage(playerid,-1,"A picat un numar impar.");
SendClientMessage(playerid,-1,"Ai pierdut 1.000.000");
GivePlayerMoney(playerid, -1000000);
}
case 2:
{
SendClientMessage(playerid,-1,"A picat un numar par.");
SendClientMessage(playerid,-1,"Ai castigat 1.000.000");
GivePlayerMoney(playerid, 1000000);
}
return 1;
}
In /stats command, creating a string with 500 cells is useless if you're showing only 3 variables.