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