warning 202: number of arguments does not match definition
#1

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
Reply
#2

pawn Код:
GetWeaponName(hand[p], wn, sizeof(wn));
GetWeaponName(ohand[p], wno, sizeof(wno));
Reply
#3

Replace GetWeaponNames with GetWeaponName, otherwise show us the code of GetWeaponNames!
Reply
#4

Remove these lines:
pawn Код:
GetWeaponNames(hand[p],wn,255);
GetWeaponNames(ohand[p],wno,255);
and use:
pawn Код:
format(string,sizeof(string),"* Valaki elteszi a(z) %s-t.", GetWeaponNames(ohand[p]));
...
format(string,sizeof(string),"* Valaki előveszi a(z) %s-t.", GetWeaponNames(hand[p]));
Reply
#5

not the original gun I want names, own weapon type when you scroll to the weapon names
Reply
#6

1 error

format(string,sizeof(string),"* Valaki elteszi a(z) %s-t йs előveszi a(z) %s-t. ", GetWeaponNames(ohand[p],GetWeaponNames(hand[p]));
ProxDetector(30.0, p, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);

RPG.pwn(9494) : warning 202: number of arguments does not match definition
RPG.pwn(9494) : error 001: expected token: ",", but found ";"

the line means putting away and takes
Reply
#7

pawn Код:
format(string,sizeof(string),"* Valaki elteszi a(z) %s-t йs előveszi a(z) %s-t. ", GetWeaponNames(ohand[p]),GetWeaponNames(hand[p]));
Reply
#8

Oh thanks help!!!!!! Konstantinos! +++

thank you everyone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)