Jump to content

pomoc time


Trhzexe

Recommended Posts

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

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...