time cmd -
thaKing - 04.11.2014
what's wrong?
pawn Код:
CMD:time(playerid, params[])
{
if(TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date));
{
TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);
} else {
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
}
return 1;
}
Re: time cmd -
Runn3R - 04.11.2014
Quote:
Originally Posted by Runcias
what's wrong?
pawn Код:
CMD:time(playerid, params[]) { if(TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date)); { TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date); } else { TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date); } return 1; }
|
pawn Код:
CMD:time(playerid, params[])
{
if(TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date))
{
TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);
} else {
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
}
return 1;
}
Try now.
Re: time cmd -
thaKing - 04.11.2014
Quote:
Originally Posted by Runn3R
pawn Код:
CMD:time(playerid, params[]) { if(TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date)) { TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date); } else { TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date); } return 1; }
Try now.
|
works, thanks.
Re: time cmd -
Runn3R - 04.11.2014
No problem.
Re: time cmd -
BroZeus - 04.11.2014
._.
its still wrong
He just removed a semicoln ._.
the wrong thing is this -
if(TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date))
U cant do like that, u have to create a variable which switches to true or false every time textdraw is show or hided
Then with if u have to check if textdraw is still displayed or not ....
Re: time cmd -
Runn3R - 04.11.2014
Quote:
Originally Posted by BroZeus
._.
its still wrong
He just removed a semicoln ._.
the wrong thing is this -
if(TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date))
U cant do like that, u have to create a variable which switches to true or false every time textdraw is show or hided
Then with if u have to check if textdraw is still displayed or not ....
|
Variable to check if it's shown? Its a DATE and TIME textdraw lmao it's not a login textdraw dude.
Re: time cmd -
Glossy42O - 04.11.2014
Quote:
Originally Posted by Runn3R
Rep me please lol.
|
Lol? I laughed so hard when i saw it, Have you read forum rules
Here is a quote of the rule
Код:
Begging - Do NOT solicit other members for the sole purpose of asking for rep. This is considered "begging" and a form of harassment. If people want to give you rep, they will. Otherwise, don't ask.
Re: time cmd -
BroZeus - 04.11.2014
Quote:
Originally Posted by Runn3R
Variable to check if it's shown? Its a DATE and TIME textdraw lmao it's not a login textdraw dude.
|
Textdraws are TextDraws.
Whether they are login/time.
See that if line and see if it is right/wrong. The if line is fully wrong and any scripter can see that and tell that..
Learn scripting first.
We need a variable to do it...
Re: time cmd -
Runn3R - 04.11.2014
Quote:
Originally Posted by Stuun
Lol? I laughed so hard when i saw it, Have you read forum rules
Here is a quote of the rule
Код:
Begging - Do NOT solicit other members for the sole purpose of asking for rep. This is considered "begging" and a form of harassment. If people want to give you rep, they will. Otherwise, don't ask.
|
lmao just saw this shit sorry.
Re: time cmd -
Glossy42O - 04.11.2014
No worries i made lots of mistakes when i haven't read the rules