Trhzexe 2 Odesláno: 18. Únor, 2021 Share Odesláno: 18. Únor, 2021 Dobrý zrejme tu mam chybu ale neviem na ňu prísť pls help ? ZCMD : CMD:time(playerid, params[]) { new newTime; if(sscanf(params,"i", newTime)) return SCM(playerid, -1, “Usage: /time <time>”); // returns the usage if you wrote the command without a parameter if (newTime < 0 || newTime > 24) return SCM(playerid, -1, "Time is from 0 to 24."); // if you wrote a lower value than 0 OR a bigger value than 24 returns it can only be used from 0 to 24 SetWorldTime(newTime); // sets world time SCM(playerid, -1, “You have changed your time.”); // returns successful time change return 1; // return 1 for the command so it worked } ERROR : E:\Games Dyk\Samp Server\gamemodes\Mod2.pwn(512) : error 029: invalid expression, assumed zero E:\Games Dyk\Samp Server\gamemodes\Mod2.pwn(512) : error 029: invalid expression, assumed zero E:\Games Dyk\Samp Server\gamemodes\Mod2.pwn(512) : error 017: undefined symbol "time" E:\Games Dyk\Samp Server\gamemodes\Mod2.pwn(512) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Link to comment Share on other sites More sharing options...
Quiter 99 Odesláno: 18. Únor, 2021 Share Odesláno: 18. Únor, 2021 No vyzera to ako keby si nemal includnuty ZCMD, pretože error ti piše že "undefined symbol "time" čo je nazov prikazu Link to comment Share on other sites More sharing options...
Trhzexe 2 Odesláno: 18. Únor, 2021 Author Share Odesláno: 18. Únor, 2021 no mam include ZCMD aj v pawno hore napisane #include <zcmd> pod tym #include <sscanf> Link to comment Share on other sites More sharing options...
Trhzexe 2 Odesláno: 18. Únor, 2021 Author Share Odesláno: 18. Únor, 2021 už som prišiel na chybu mal som na krivo toto “Usage tie znamienka mali byt rovno "USAGE Link to comment Share on other sites More sharing options...
Quiter 99 Odesláno: 18. Únor, 2021 Share Odesláno: 18. Únor, 2021 Aha :D pekna chybicka do buducna ukaz ktory riadok je 512 (resp. ten na ktorom mas error), budeme vediet na co sa mame zamerat Link to comment Share on other sites More sharing options...
Scydo 397 Odesláno: 18. Únor, 2021 Share Odesláno: 18. Únor, 2021 @Trhzexe Vždyť už jsi měl funkční dobrou verzi nastavení času ve: Proč si to downgrandoval zpět? Link to comment Share on other sites More sharing options...
Trhzexe 2 Odesláno: 19. Únor, 2021 Author Share Odesláno: 19. Únor, 2021 nvm nejako mi to nešlo :D Link to comment Share on other sites More sharing options...
Majitel ffredyk 167 Odesláno: 19. Únor, 2021 Majitel Share Odesláno: 19. Únor, 2021 Aneb celej problém byl v tutom: 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now