Warnings problem.. (+REP)
#1

Код:
C:\Users\ники\Desktop\gangwars.pwn(2436) : warning 215: expression has no effect
C:\Users\ники\Desktop\gangwars.pwn(2440) : warning 215: expression has no effect
C:\Users\ники\Desktop\gangwars.pwn(2441) : warning 215: expression has no effect
C:\Users\ники\Desktop\gangwars.pwn(2450) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Reply
#2

so we guess your code..
Reply
#3

Please post your codes.
Reply
#4

Post the lines that are getting warnings (2436, 2440, 2441, 2450).
Reply
#5

New :

Код:
C:\Users\ники\Desktop\gangwars.pwn(692) : error 076: syntax error in the expression, or invalid function call
C:\Users\ники\Desktop\gangwars.pwn(2362) : error 076: syntax error in the expression, or invalid function call
C:\Users\ники\Desktop\gangwars.pwn(2449) : warning 215: expression has no effect
C:\Users\ники\Desktop\gangwars.pwn(2453) : warning 215: expression has no effect
C:\Users\ники\Desktop\gangwars.pwn(2454) : warning 215: expression has no effect
C:\Users\ники\Desktop\gangwars.pwn(2463) : warning 215: expression has no effect
C:\Users\ники\Desktop\gangwars.pwn(2584) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Код:
public settime(playerid)
{
        new string[256],year,month,day,hours,minutes,seconds;
        getdate(year, month, day), gettime(hours, minutes, seconds);
        format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
        TextDrawSetString(Date, string);
        format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
        TextDrawSetString(Time, string);
}
Код:
//==============================================================================
public OnPlayerDisconnect(playerid, reason)
{
    TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);
	// Pointless reseting, but just incase!
	g_cleoData[ playerid ] [ E_FK_LASTDEATH ] = 0;
	g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] = 0;
	g_cleoData[ playerid ] [ E_CW_TIME ] = 0;
	g_cleoData[ playerid ] [ E_CW_VEHID ] = INVALID_VEHICLE_ID;
	g_cleoData[ playerid ] [ E_PB_X ] = -1;
	g_cleoData[ playerid ] [ E_PB_Y ] = -1;
	g_cleoData[ playerid ] [ E_PB_Z ] = -1;
	g_cleoData[ playerid ] [ E_CPS_SPAMCOUNT ] = 0;
	g_cleoData[ playerid ] [ E_CPS_TICK ] = 0;
Код:
public OnFilterScriptInit()
	{
	    for(new j = 0; j < MAX_PLAYERS; j++)
    {
        SetTimerEx("Payday",1*60*60*3600,true,"i",j);
	}

		FC_OPU = ( funcidx( "FC_OnPlayerUpdate" ) != -1 );
		FC_OPD = ( funcidx( "FC_OnPlayerDeath" ) != -1 );
		FC_OPSC = ( funcidx( "FC_OnPlayerStateChange" ) != -1 );
		FC_OPDC = ( funcidx( "FC_OnPlayerDisconnect" ) != -1 );
		FC_OVDSU = ( funcidx( "FC_OnVehicleDamageStatusUpdate" ) != -1 );
		
        SetTimerr("settime",1000,true);

        Date = TextDrawCreate(547.000000,11.000000,"--");

        TextDrawFontt(Date,3);
        TextDrawLetterSizee(Date,0.399999,1.600000);
        TextDrawColor(Date,0xffffffff);

        Timee = TextDrawCreate(547.000000,28.000000,"--");

        TextDrawFont(Timee,3);
        TextDrawLetterSize(Timee,0.399999,1.600000);
        TextDrawColor(Timee,0xffffffff);

        SetTimerr("settime",1000,true);
        return 1;
}
Код:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
Reply
#6

please the lines show them not the hole code
Reply
#7

Код:
692 - TextDrawSetString(Time, string);

2362 - TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);

2449 - SetTimerr("settime",1000,true);

2453 - TextDrawFontt(Date,3);

2454 - TextDrawLetterSizee(Date,0.399999,1.600000);

2463 - SetTimerr("settime",1000,true);

2584 - TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
Reply
#8

Quote:
Originally Posted by dundolina
Посмотреть сообщение
Код:
692 - TextDrawSetString(Time, string);

2362 - TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);

2449 - SetTimerr("settime",1000,true);

2453 - TextDrawFontt(Date,3);

2454 - TextDrawLetterSizee(Date,0.399999,1.600000);

2463 - SetTimerr("settime",1000,true);

2584 - TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);

2362 - TextDrawShowForPlayer(playerid, Time);// its show be on new line
TextDrawShowForPlayer(playerid, Date);

2449 - SetTimer("settime",1000,true); Its not called ..Timerrrrrrrrr its wich only 1 r

2453 - TextDrawFont(Date,3); Font its wich only 1 r same here

2454 - TextDrawLetterSize(Date,0.399999,1.600000); Size its wich only 1 r same here

2463 - SetTimer("settime",1000,true); Timer its wich only 1 r same here

2584 - TextDrawShowForPlayer(playerid, Time);// its show be on new line
TextDrawShowForPlayer(playerid, Date);
Reply
#9

Quote:
Originally Posted by doreto
Посмотреть сообщение
2362 - TextDrawShowForPlayer(playerid, Time);// its show be on new line
TextDrawShowForPlayer(playerid, Date);

2449 - SetTimer("settime",1000,true); Its not called ..Timerrrrrrrrr its wich only 1 r

2453 - TextDrawFont(Date,3); Font its wich only 1 r same here

2454 - TextDrawLetterSize(Date,0.399999,1.600000); Size its wich only 1 r same here

2463 - SetTimer("settime",1000,true); Timer its wich only 1 r same here

2584 - TextDrawShowForPlayer(playerid, Time);// its show be on new line
TextDrawShowForPlayer(playerid, Date);
HXAHHAHXAHXHAXAHXAHHAXHXAHXAHXA

1.The first does not work.
2.You all should have one more point because there are other rows with these names and gives errors.
3.The latter also does not work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)