Jump to content
  • 0

pomoc errory


rhsCZ

Dotaz

zdravim ja bych potreboval pomoc s errorama

dekuju

errory

C:\cj\all\warps.pwn(47) : warning 202: number of arguments does not match definition
C:\cj\all\warps.pwn(48) : error 035: argument type mismatch (argument 2)
C:\cj\all\warps.pwn(56) : error 008: must be a constant expression; assumed zero
C:\cj\all\warps.pwn(57) : error 029: invalid expression, assumed zero
C:\cj\all\warps.pwn(57 -- 58) : warning 215: expression has no effect
C:\cj\all\warps.pwn(58) : error 001: expected token: ";", but found "return"
C:\cj\all\warps.pwn(64) : warning 202: number of arguments does not match definition
C:\cj\all\warps.pwn(65) : error 035: argument type mismatch (argument 2)
C:\cj\all\warps.pwn(73) : error 008: must be a constant expression; assumed zero
C:\cj\all\warps.pwn(75) : error 001: expected token: "*then", but found "}"
C:\cj\all\warps.pwn(75) : error 029: invalid expression, assumed zero
C:\cj\all\warps.pwn(75 -- 76) : warning 215: expression has no effect
C:\cj\all\warps.pwn(76) : error 001: expected token: ";", but found "return"
C:\cj\all\warps.pwn(76) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

řádky:

47 GetPlayerName(playerid,name);
48 format(string, "hráč %s se odwarpowal na policejní stanici v los santos",name);
56 SetPlayerPos(playerid,553.3293,-1676.6621,16.1953);
57 }
58 	return 1;
64 GetPlayerName(playerid,name);
65 format(string, "hráč %s se odwarpowal k tunírně wheel arch angels v san fieru",name);
73 SetPlayerPos(playerid,-2710.4775,224.7919,4.1875);
75 	}
76 return 1;

dekuju za pomoc

Link to comment
Share on other sites

21 odpovědí na tuto otázku

Recommended Posts

  • 0

47 GetPlayerName(playerid,name,24);
48 format(string, sizeof(string), "hráč %s se odwarpowal na policejní stanici v los santos",name);
56 SetPlayerPos(playerid,553.3293,-1676.6621,16.1953);
54  return 1;
57 }
64 GetPlayerName(playerid,name,24);
65 format(string,sizeof(string), "hráč %s se odwarpowal k tunírně wheel arch angels v san fieru",name);
73 SetPlayerPos(playerid,-2710.4775,224.7919,4.1875);
74 return 1;
75    }

 

Vyskúšaj toto, chýbal ti paramateer v zisťovaní mena a vo formáte a return sa dáva pred zátvorkou

Link to comment
Share on other sites

  • 0

mne to ukazalo iba tento error lebo nemam ten include a ty ho asi máš:

C:\Users\Mirko\Desktop\radio.pwn(2) : fatal error 100: cannot read from file: "sscanf2"

Link to comment
Share on other sites

  • 0
mne to ukazalo iba tento error lebo nemam ten include a ty ho asi máš:

C:\Users\Mirko\Desktop\radio.pwn(2) : fatal error 100: cannot read from file: "sscanf2"

proč asi? no protože nemáš sscanf2.inc ;)

 

a jinak, rhs, stáhni si pawno s nejnovějšími includy:tady a pude ti to ;) code máš dobře

Link to comment
Share on other sites

  • 0
mne to ukazalo iba tento error lebo nemam ten include a ty ho asi máš:

C:\Users\Mirko\Desktop\radio.pwn(2) : fatal error 100: cannot read from file: "sscanf2"

proč asi? no protože nemáš sscanf2.inc ;)

 

a jinak, rhs, stáhni si pawno s nejnovějšími includy:tady a pude ti to ;) code máš dobře

jo de to zcompilovat ale funkčnost nak vazne si to zcompiluj a zkus /radioo 1 = příkaz neexistuje :( ale /radioo napiše to co ma

Link to comment
Share on other sites

  • 0
pardon špatny soubor :dzde je spravny sry ja si spletl soubor :d a mimochodem se řeší warpy :d

hm... tak co sem tak koukal na ten new tak tam máš špatně formáty

 

ty tam máš:

format(string, "něco" ,name);

má být

 

format(string,sizeof(string), "něco" ,name);

 

a máš to špatně ozávorkovaný

 

ps. takhle hnusnej code sem už dlouho neviděl....

Link to comment
Share on other sites

  • 0
pardon špatny soubor :dzde je spravny sry ja si spletl soubor :d a mimochodem se řeší warpy :d

hm... tak co sem tak koukal na ten new tak tam máš špatně formáty

 

ty tam máš:

format(string, "něco" ,name);

má být

 

format(string,sizeof(string), "něco" ,name);

 

a máš to špatně ozávorkovaný

 

ps. takhle hnusnej code sem už dlouho neviděl....

ja nwm jako co je na tom codu hnusnyho a ty errory nemaj nic společnyho s formatama tak nwm ale ja to čekoval blbe ozavorkovany to myt nemužu ještě jsem to čekoval

Link to comment
Share on other sites

  • 0
ale vzdyt si na tom nic nezmnenil :d

 

pozri si to poriadne a zistíš že zmenil....chýbal ti parameter vo formáte a returny si mal za zátvorkou ! dávaju sa pred poslednú zátvorku ! :!: :!: :!:

Link to comment
Share on other sites

  • 0
zdravim ja bych potreboval pomoc s errorama

dekuju

errory

C:\cj\all\warps.pwn(47) : warning 202: number of arguments does not match definition
C:\cj\all\warps.pwn(48) : error 035: argument type mismatch (argument 2)
C:\cj\all\warps.pwn(56) : error 008: must be a constant expression; assumed zero
C:\cj\all\warps.pwn(57) : error 029: invalid expression, assumed zero
C:\cj\all\warps.pwn(57 -- 58) : warning 215: expression has no effect
C:\cj\all\warps.pwn(58) : error 001: expected token: ";", but found "return"
C:\cj\all\warps.pwn(64) : warning 202: number of arguments does not match definition
C:\cj\all\warps.pwn(65) : error 035: argument type mismatch (argument 2)
C:\cj\all\warps.pwn(73) : error 008: must be a constant expression; assumed zero
C:\cj\all\warps.pwn(75) : error 001: expected token: "*then", but found "}"
C:\cj\all\warps.pwn(75) : error 029: invalid expression, assumed zero
C:\cj\all\warps.pwn(75 -- 76) : warning 215: expression has no effect
C:\cj\all\warps.pwn(76) : error 001: expected token: ";", but found "return"
C:\cj\all\warps.pwn(76) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

řádky:

47 GetPlayerName(playerid,name);
48 format(string, "hráč %s se odwarpowal na policejní stanici v los santos",name);
56 SetPlayerPos(playerid,553.3293,-1676.6621,16.1953);
57 }
58 	return 1;
64 GetPlayerName(playerid,name);
65 format(string, "hráč %s se odwarpowal k tunírně wheel arch angels v san fieru",name);
73 SetPlayerPos(playerid,-2710.4775,224.7919,4.1875);
75 	}
76 return 1;

dekuju za pomoc

nieco co ukoncujes musis aj zacat a { je kde a if podmienka ??

ked doplnis toto 2x tak ti to pojde.... podla vsetkeho

ak nevies co chyba tak napis

Link to comment
Share on other sites

  • 0

Je to opravené ale najprv pár rád ktoré si prečítaj :!:

 

1.)Nauč sa funkciu GetPlayerName - chýbal ti parameter

2.)Nauč sa funkciu format - chýbal ti parameter

3.)Nauč sa podmienky a hlavne používanie else if - mal si to blbo

4.)Nauč sa TABovať

 

Download:

http://www.ulozisko.sk/484358/warps.pwn

Link to comment
Share on other sites

  • 0
Je to opravené ale najprv pár rád ktoré si prečítaj :!:

 

1.)Nauč sa funkciu GetPlayerName - chýbal ti parameter

2.)Nauč sa funkciu format - chýbal ti parameter

3.)Nauč sa podmienky a hlavne používanie else if - mal si to blbo

4.)Nauč sa TABovať

 

Download:

http://www.ulozisko.sk/484358/warps.pwn

dík moc to vis ucim se pawn ty chyby obcas vyjdou najevo pls lock

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...