HELP HELP
#5

Quote:
Originally Posted by FakkChass
Посмотреть сообщение
thanks Jimmy0wns for your reply, but sorry, that's not the right way i want it
i just want it like it was
pawn Код:
time = params
and want remove that error. tell me what to use strlen or strval, something that solve problem.
Any more replies please ?
It shows the erorr, because you defined or assigned Time incorrectly, Jimmy's code was perfect, I have no idea what you really want

pawn Код:
dcmd_time( playerid, params[] )
{
    if( isnull ( params ) )
        return SendClientMessage( playerid, -1, "[USAGE] /time [ time ] ");

    if( 0 > time > 24  )
        return SendClientMessage( playerid, -1, "Available Hours: 0-24" );

    SetPlayerTime(playerid, params);
    return 1;
}
or this

Quote:
Originally Posted by Chenko
Посмотреть сообщение
If you want to assign the value of params to the variable Time than you need to do:

Код:
Time = strval(params)
Because I assume time is an integer and params is a string so you need to use strval() to get the integer value from params.
Reply


Messages In This Thread
HELP HELP - by FakkChass - 14.12.2013, 21:17
Re: HELP HELP - by Jimmy0wns - 14.12.2013, 21:19
Re: HELP HELP - by FakkChass - 14.12.2013, 21:21
Re: HELP HELP - by Chenko - 14.12.2013, 21:22
Re: HELP HELP - by Patrick - 14.12.2013, 21:26

Forum Jump:


Users browsing this thread: 1 Guest(s)