25.07.2012, 13:12
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);