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.
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);
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);
Код:
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); |