[Error] Nъmero de serie.
#4

pawn Код:
switch(listitem)
            {
                case 0:
                {
                   if(JugadorInfo[playerid][pDonateT] == 1)
                    {
                        new randarma = random(99999);
                        NumeroDeSerie1[playerid] = randarma;
                        SendClientMessage(playerid, COLOR_YELLOW, "Usted ha comprado un rifle de caza Marlin Model 336 (calibre .30). Se le ha hecho un descuento del 30%% por ser socio.");
                        format(string, sizeof(string), "El nъmero de serie de su rifle de caza es {00FF00}%d.", randarma);
                        SendClientMessage(playerid, COLOR_YELLOW, string);
                        Compra(playerid, 693);
                        SafeGivePlayerWeapon(playerid, 33,1);

                    }
                    else
                    {
                        new randarma = random(99999);
                        NumeroDeSerie2[playerid] = randarma;
                        SendClientMessage(playerid, COLOR_YELLOW, "Usted ha comprado un rifle de caza Marlin Model 336 (calibre .30).");
                        format(string, sizeof(string), "El nъmero de serie de su rifle de caza es {00FF00}%d.", randarma);
                        SendClientMessage(playerid, COLOR_YELLOW, string);
                        Compra(playerid, 990);
                        SafeGivePlayerWeapon(playerid, 33,1);

                    }
                }
                case 1:
                {
                     if(JugadorInfo[playerid][pDonateT] == 1)
                    {
                        new randarma = random(99999);
                        NumeroDeSerie3[playerid] = randarma;
                        SendClientMessage(playerid, COLOR_YELLOW, "Usted ha comprado una escopeta Ithaca 17 (calibre 18,53mm). Se le ha hecho un descuento del 30%% por ser socio.");
                        format(string, sizeof(string), "El nъmero de serie de su escopeta normal es {00FF00}%d.", randarma);
                        SendClientMessage(playerid, COLOR_YELLOW, string);
                        Compra(playerid, 805);
                        SafeGivePlayerWeapon(playerid, 25,1);

                    }
                    else
                    {
                        new randarma = random(99999);
                        NumeroDeSerie4[playerid] = randarma;
                        SendClientMessage(playerid, COLOR_YELLOW, "Usted ha comprado una escopeta Ithaca 17 (calibre 18,53mm). Se le ha hecho un descuento del 30%% por ser socio.");
                        format(string, sizeof(string), "El nъmero de serie de su escopeta normal es {00FF00}%d.", randarma);
                        SendClientMessage(playerid, COLOR_YELLOW, string);
                        Compra(playerid, 1150);
                        SafeGivePlayerWeapon(playerid, 25,1);

                    }
                }
            }
        }
        else ShowAmmunation(playerid);
    }
Asi sucesivamente asi cada variable comtendra un numero de serie.

Un saludo.
Reply


Messages In This Thread
[Error] Nъmero de serie. - by Glimma - 10.11.2012, 14:26
Respuesta: [Error] Nъmero de serie. - by oOFotherOo - 10.11.2012, 14:38
Respuesta: [Error] Nъmero de serie. - by Glimma - 10.11.2012, 14:44
Respuesta: [Error] Nъmero de serie. - by oOFotherOo - 10.11.2012, 14:47
Respuesta: [Error] Nъmero de serie. - by Glimma - 10.11.2012, 14:59
Respuesta: [Error] Nъmero de serie. - by oOFotherOo - 10.11.2012, 15:14
Respuesta: [Error] Nъmero de serie. - by Glimma - 10.11.2012, 15:34
Respuesta: [Error] Nъmero de serie. - by oOFotherOo - 10.11.2012, 15:52
Respuesta: [Error] Nъmero de serie. - by Glimma - 10.11.2012, 16:02
Respuesta: [Error] Nъmero de serie. - by oOFotherOo - 10.11.2012, 16:05

Forum Jump:


Users browsing this thread: 2 Guest(s)