one warning help?
#1

Код:
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.
Reply
#2

pawn Код:
if(countsec == 0)
    {
        countsec = 59;
        countmin--;
        TextDrawShowForPlayer(playerid, Textdraw21);
        return 1;
    }
Fixed.

(632904) lines? WTF?
Reply
#3

sorry for offtopic but wow you have 632904 lines?!
Reply
#4

When doing an if a equals b statement, you should use "==" rather than "="

the "if" line should look like:
pawn Код:
if(countsec == 0)
Reply
#5

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
Reply
#6

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
Reply
#7

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
Reply
#8

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.
Reply
#9

I think its good gamemode with (632904) lines First time i see lines like that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)