03.04.2011, 08:31
Hey there,
i have something like this(ignore the language, im from Slovakia ):
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
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;
Thanks so much