11.02.2014, 09:13
I can not stand not at all resolve not to be defective, please help!
CHT = SetTimer("CheckHand", 1000, 1);
///autome
forward CheckHand();
//autome
new tolteny[MAX_PLAYERS];
new ohand[MAX_PLAYERS] = 0;
new hand[MAX_PLAYERS] = 0;
public CheckHand()
{
new string[256];
new wn[32];
new wno[32];
for(new p; p<MAX_PLAYERS; p++)
{
hand[p] = GetPlayerWeapon(p);
tolteny[p] = GetPlayerAmmo(p);
if(ohand[p] != hand[p])
{
if(tolteny[p] != 0)
{
GetWeaponNames(hand[p],wn,255); <<<< Warning 202: .... 2x
GetWeaponNames(ohand[p],wno,255); <<<<< Warning 202:.... 2x
if(hand[p] == 0)
{
format(string,sizeof(string),"* Valaki elteszi a(z) %s-t.", wno);
ProxDetector(30.0, p, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
else if(ohand[p] == 0)
{
format(string,sizeof(string),"* Valaki előveszi a(z) %s-t.", wn);
ProxDetector(30.0, p, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
else
{
format(string,sizeof(string),"* Valaki elteszi a(z) %s-t йs előveszi a(z) %s-t. ",wno, wn);
ProxDetector(30.0, p, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
ohand[p] = hand[p];
}
}
}
return 1;
}
What should respond:
stock GetWeaponNames(wid)
{
new gunname[32];
switch (wid)
{
case 1.. 2,
18.. 22,
47 : GetWeaponName(wid,gunname,sizeof(gunname));
case 0: format(gunname,32,"%s","Цkцl");
case 3: format(gunname,32,"%s","Gumibot");
case 4: format(gunname,32,"%s","Kйs");
case 5: format(gunname,32,"%s","Baseball ьtő");
case 6: format(gunname,32,"%s","Lapбt");
case 7: format(gunname,32,"%s","Biliбrd dбkу");
case 8: format(gunname,32,"%s","Katana");
case 9: format(gunname,32,"%s","Lбncfűrйsz");
case 10: format(gunname,32,"%s","Rуzsaszнn Dildo");
case 11: format(gunname,32,"%s","Kis-Fehйr Vibrбtor");
case 12: format(gunname,32,"%s","Nagy-Fehйr Vibrбtor");
case 13: format(gunname,32,"%s","Kцzepes-Fehйr Vibrбtor");
case 14: format(gunname,32,"%s","Virбg");
case 15: format(gunname,32,"%s","Bot");
case 16: format(gunname,32,"%s","Grбnбt");
case 17: format(gunname,32,"%s","Kцnnygбz");
case 23: format(gunname,32,"%s","Mуdosнtott Colt45");
case 24: format(gunname,32,"%s","Desert Eagle");
case 25: format(gunname,32,"%s","Shotgun");
case 26: format(gunname,32,"%s","Duplacsцvű Shotgun");
case 27: format(gunname,32,"%s","Combat Shotgun");
case 28: format(gunname,32,"%s","Uzi");
case 29: format(gunname,32,"%s","Mp5");
case 30: format(gunname,32,"%s","Ak47");
case 31: format(gunname,32,"%s","M4");
case 32: format(gunname,32,"%s","Tec9");
case 33: format(gunname,32,"%s","Puska");
case 34: format(gunname,32,"%s","Sniper");
case 35: format(gunname,32,"%s","Bazooka");
case 36: format(gunname,32,"%s","Hőkцvető Bazooka");
case 37: format(gunname,32,"%s","Lбngszorу");
case 38: format(gunname,32,"%s","Minigun");
case 39: format(gunname,32,"%s","Tбska C4");
case 40: format(gunname,32,"%s","Detonбtor");
case 41: format(gunname,32,"%s","Spray");
case 42: format(gunname,32,"%s","Poroltу");
case 43: format(gunname,32,"%s","Fйnykйpezőgйp");
case 44: format(gunname,32,"%s","Йjellбtу szemьveg");
case 45: format(gunname,32,"%s","Hőlбtу szemьveg");
case 46: format(gunname,32,"%s","Ejtőernyő");
default: format(gunname,32,"%s","Invalid Weapon Id");
}
return gunname;
}
PLEASE Help!
RPG.pwn(9482) : warning 202: number of arguments does not match definition
RPG.pwn(9482) : warning 202: number of arguments does not match definition
RPG.pwn(9483) : warning 202: number of arguments does not match definition
RPG.pwn(9483) : warning 202: number of arguments does not match definition
CHT = SetTimer("CheckHand", 1000, 1);
///autome
forward CheckHand();
//autome
new tolteny[MAX_PLAYERS];
new ohand[MAX_PLAYERS] = 0;
new hand[MAX_PLAYERS] = 0;
public CheckHand()
{
new string[256];
new wn[32];
new wno[32];
for(new p; p<MAX_PLAYERS; p++)
{
hand[p] = GetPlayerWeapon(p);
tolteny[p] = GetPlayerAmmo(p);
if(ohand[p] != hand[p])
{
if(tolteny[p] != 0)
{
GetWeaponNames(hand[p],wn,255); <<<< Warning 202: .... 2x
GetWeaponNames(ohand[p],wno,255); <<<<< Warning 202:.... 2x
if(hand[p] == 0)
{
format(string,sizeof(string),"* Valaki elteszi a(z) %s-t.", wno);
ProxDetector(30.0, p, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
else if(ohand[p] == 0)
{
format(string,sizeof(string),"* Valaki előveszi a(z) %s-t.", wn);
ProxDetector(30.0, p, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
else
{
format(string,sizeof(string),"* Valaki elteszi a(z) %s-t йs előveszi a(z) %s-t. ",wno, wn);
ProxDetector(30.0, p, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
ohand[p] = hand[p];
}
}
}
return 1;
}
What should respond:
stock GetWeaponNames(wid)
{
new gunname[32];
switch (wid)
{
case 1.. 2,
18.. 22,
47 : GetWeaponName(wid,gunname,sizeof(gunname));
case 0: format(gunname,32,"%s","Цkцl");
case 3: format(gunname,32,"%s","Gumibot");
case 4: format(gunname,32,"%s","Kйs");
case 5: format(gunname,32,"%s","Baseball ьtő");
case 6: format(gunname,32,"%s","Lapбt");
case 7: format(gunname,32,"%s","Biliбrd dбkу");
case 8: format(gunname,32,"%s","Katana");
case 9: format(gunname,32,"%s","Lбncfűrйsz");
case 10: format(gunname,32,"%s","Rуzsaszнn Dildo");
case 11: format(gunname,32,"%s","Kis-Fehйr Vibrбtor");
case 12: format(gunname,32,"%s","Nagy-Fehйr Vibrбtor");
case 13: format(gunname,32,"%s","Kцzepes-Fehйr Vibrбtor");
case 14: format(gunname,32,"%s","Virбg");
case 15: format(gunname,32,"%s","Bot");
case 16: format(gunname,32,"%s","Grбnбt");
case 17: format(gunname,32,"%s","Kцnnygбz");
case 23: format(gunname,32,"%s","Mуdosнtott Colt45");
case 24: format(gunname,32,"%s","Desert Eagle");
case 25: format(gunname,32,"%s","Shotgun");
case 26: format(gunname,32,"%s","Duplacsцvű Shotgun");
case 27: format(gunname,32,"%s","Combat Shotgun");
case 28: format(gunname,32,"%s","Uzi");
case 29: format(gunname,32,"%s","Mp5");
case 30: format(gunname,32,"%s","Ak47");
case 31: format(gunname,32,"%s","M4");
case 32: format(gunname,32,"%s","Tec9");
case 33: format(gunname,32,"%s","Puska");
case 34: format(gunname,32,"%s","Sniper");
case 35: format(gunname,32,"%s","Bazooka");
case 36: format(gunname,32,"%s","Hőkцvető Bazooka");
case 37: format(gunname,32,"%s","Lбngszorу");
case 38: format(gunname,32,"%s","Minigun");
case 39: format(gunname,32,"%s","Tбska C4");
case 40: format(gunname,32,"%s","Detonбtor");
case 41: format(gunname,32,"%s","Spray");
case 42: format(gunname,32,"%s","Poroltу");
case 43: format(gunname,32,"%s","Fйnykйpezőgйp");
case 44: format(gunname,32,"%s","Йjellбtу szemьveg");
case 45: format(gunname,32,"%s","Hőlбtу szemьveg");
case 46: format(gunname,32,"%s","Ejtőernyő");
default: format(gunname,32,"%s","Invalid Weapon Id");
}
return gunname;
}
PLEASE Help!
RPG.pwn(9482) : warning 202: number of arguments does not match definition
RPG.pwn(9482) : warning 202: number of arguments does not match definition
RPG.pwn(9483) : warning 202: number of arguments does not match definition
RPG.pwn(9483) : warning 202: number of arguments does not match definition