Dunno Why - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dunno Why (
/showthread.php?tid=86852)
Dunno Why -
UsaBoy91 - 16.07.2009
I use this in a timer at 1 second ( for a test ) and it don't work ... dunno why
pawn Код:
if((month != 1 && day != 31) && (month != 2 && day != 28) && (month != 3 && day != 31) &&
(month != 4 && day != 30) && (month != 5 && day != 31) && (month != 6 && day != 30) &&
(month != 7 && day != 31) && (month != 8 && day != 31) && (month != 9 && day != 30) &&
(month != 10 && day != 31) && (month != 11 && day != 30) && (month != 12 && day != 31))
{
SendClientMessage(playerid,COLOR_WHITE,"You are not at the final of a month");
}
I have the date set on Ianuarie 2 ( month == 1 && day == 2 ) and i don't recive any message
Re: Dunno Why -
Adamrcook - 16.07.2009
I don't see any messages to see whats wrong, maybe show us more?
Re: Dunno Why -
Khelif - 16.07.2009
you need to replace && with ||
Код:
if((month != 1 && day != 31) || (month != 2 && day != 28) || (month != 3 && day != 31) ||
(month != 4 && day != 30) || (month != 5 && day != 31) || (month != 6 && day != 30) ||
(month != 7 && day != 31) || (month != 8 && day != 31) || (month != 9 && day != 30) ||
(month != 10 && day != 31) || (month != 11 && day != 30) || (month != 12 && day != 31))
SendClientMessage(playerid,COLOR_WHITE,"You are not at the final of a month");