Some error inside cycle.
#1

Hey there,
i have something like this(ignore the language, im from Slovakia ):
pawn Код:
new gWeaponNames[][] = {
    {"Pest",0},
    {"Boxer",1},
    {"Golf",2},
    {"Obusok",3},
    {"Noz",4},
    {"Baseball",5},
    {"Lopata",6},
    {"Tago",7},
    {"Katana",8},
    {"Motorovka",9},
    {"Dildo",10},
    {"SmallVibrator",11},
    {"LargeVibrator",12},
    {"SilverVibrator",13},
    {"Kvety",14},
    {"Palica",15},
    {"Granat",16},
    {"Dymovnica",17},
    {"Molotov",18},
    {"Pistol",22},
    {"TlmenaPistol",23},
    {"Deagle",24},
    {"Brokovnica",25},
    {"Upilka",26},
    {"Spas12",27},
    {"MicroSMG",28},
    {"MP5",29},
    {"AK-47",30},
    {"M4",31},
    {"Tec9",32},
    {"Puska",33},
    {"Sniperka",34},
    {"Raketomet",35},
    {"Plamenomet",37},
    {"Minigun",38},
    {"C4",39},
    {"Detonator",40},
    {"Spray",41},
    {"Hasicak",42},
    {"Fotak",43},
    {"NocneVidenie",44},
    {"TermalneVidenie",45},
    {"Padak",46}
};
for(new i=0;i<sizeof(gWeaponNames);i++)
{
   if(strcmp(Weapon,gWeaponNames[i][0],true)==0)
   {
    model=gWeaponNames[i][1];
    break;
    }
}
return 1;
And, when i set "Weapon" to eg. "Deagle", it sets "model" to "101"... Does someone have any idea, how to slove it?
Thanks so much
Reply


Messages In This Thread
Some error inside cycle. - by Mmartin - 03.04.2011, 08:31
Re: Some error inside cycle. - by AK47317 - 03.04.2011, 08:58
Re: Some error inside cycle. - by Mmartin - 03.04.2011, 09:07
Re: Some error inside cycle. - by Max_Coldheart - 03.04.2011, 09:50
Re: Some error inside cycle. - by Mmartin - 03.04.2011, 10:01
Re: Some error inside cycle. - by Mmartin - 03.04.2011, 11:52

Forum Jump:


Users browsing this thread: 1 Guest(s)