one warning help? - 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: one warning help? (
/showthread.php?tid=261738)
one warning help? -
CrazyBlob - 14.06.2011
Код:
if(countsec = 0)
{
countsec = 59;
countmin--;
TextDrawShowForPlayer(playerid, Textdraw21);
return 1;
}
i have a count and making it as a timer after 59seconds it takes 1 off the clock but it compile heres the warning
Код:
C:\Users\ImACookie\Desktop\*************\gamemodes\ctV2.pwn(632904) : warning 211: possibly unintended assignment
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Re: one warning help? -
WooTFTW - 14.06.2011
pawn Код:
if(countsec == 0)
{
countsec = 59;
countmin--;
TextDrawShowForPlayer(playerid, Textdraw21);
return 1;
}
Fixed.
(632904) lines? WTF?
Re: one warning help? -
xalith - 14.06.2011
sorry for offtopic but wow you have 632904 lines?!
Re: one warning help? -
Ash. - 14.06.2011
When doing an if a equals b statement, you should use "==" rather than "="
the "if" line should look like:
Re: one warning help? -
CrazyBlob - 14.06.2011
Quote:
Originally Posted by Skorch
pawn Код:
if(countsec == 0) { countsec = 59; countmin--; TextDrawShowForPlayer(playerid, Textdraw21); return 1; }
Fixed.
(632904) lines? WTF?
|
thanks and for the lines question
yes its a huge gamemode i have over 60people working on it lol
Re: one warning help? -
WooTFTW - 14.06.2011
Quote:
Originally Posted by CrazyBlob
thanks and for the lines question
yes its a huge gamemode i have over 60people working on it lol
|
Sorry for the offtopic question.
I find that an gamemode with 20 k lines is messy, it would be damn annoying to work with 632k lines and compiling it everytime few minutes. And how 60 people can be this organised? lol
Re: one warning help? -
CrazyBlob - 14.06.2011
Quote:
Originally Posted by Skorch
Sorry for the offtopic question.
I find that an gamemode with 20 k lines is messy, it would be damn annoying to work with 632k lines and compiling it everytime few minutes. And how 60 people can be this organised? lol
|
i find it myself amazing and it takes about 30minutes to compile im still compiling now il tell you guys if it works
Re: one warning help? -
WooTFTW - 14.06.2011
Quote:
Originally Posted by CrazyBlob
i find it myself amazing and it takes about 30minutes to compile im still compiling now il tell you guys if it works
|
TIP:
#undef MAX_PLAYERS
#define MAX_PLAYERS 2
it will greatly increase you compile speed, but don't place the gamemode in public because only 2 people will be functioning. Just when you put the gamemode in public, put it back to 500 or whatever.
Re: one warning help? -
Serifukas - 14.06.2011
I think its good gamemode with (632904) lines First time i see lines like that