Problem[rep]
#1

is there a problem with this??Please help giving rep

PHP код:
SendClientMessage(playeridi"In 20 Secunde Rac!!");
for(new 
i=0i<MAX_PLAYERSi++)

Reply
#2

SendClientMessage(playerid, i"In 20 Secunde Rac!!");

You're missing a comma after 'i':

SendClientMessage(playerid, i, "In 20 Secunde Rac!!");
Reply
#3

pawn Код:
SendClientMessage(playerid, i, "In 20 Secunde Rac!!");


for(new i=0; i<MAX_PLAYERS; i++)
{  
// rest
Reply
#4

PHP код:

public SyncTime()
{
    new 
string[64];
    new 
tmphour;
    new 
tmpminute;
    new 
tmpsecond;
    
gettime(tmphourtmpminutetmpsecond);
    
FixHour(tmphour);
    
tmphour shifthour;
    if ((
tmphour ghour) || (tmphour == && ghour == 23))
    {
        
format(stringsizeof(string), "Este ora Fix Ceasul acuma este: %d:00 Succes incontinuare!",tmphour);
        
BroadCast(COLOR_WHITE,string);
        
ghour tmphour;
        
PayDay();
                         for(new 
i=0i<MAX_PLAYERSi++)
        {
        
SendClientMessage(playeridi"In 20 Secunde Rac!!");
        
SetTimer("ScheduledRespawn",20000,false);
        if (
realtime)
        {
            
SetWorldTime(tmphour);
        }
    }

it gives my 26 errors..the have nothing with this..

if i take this out i get no errors.

PHP код:
    for(new i=0i<MAX_PLAYERSi++)
        {
        
SendClientMessage(playeridi"In 20 Secunde Rac!!");
        
SetTimer("ScheduledRespawn",20000,false); 
i have forward..Rep
Reply
#5

pawn Код:
public SyncTime()
{
    new string[64];
    new tmphour;
    new tmpminute;
    new tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    FixHour(tmphour);
    tmphour = shifthour;
    if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
    {
        format(string, sizeof(string), "Este ora Fix Ceasul acuma este: %d:00 Succes incontinuare!",tmphour);
        BroadCast(COLOR_WHITE,string);
        ghour = tmphour;
        PayDay();
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            SendClientMessage(playerid, i, "In 20 Secunde Rac!!");
            SetTimer("ScheduledRespawn",20000,false);
        } // < missed
        if (realtime)
        {
            SetWorldTime(tmphour);
        }
    }
}
Reply
#6

It's
pawn Код:
SendClientMessage( i, color_here, "In 20 Secunde Rac!!" );
Reply
#7

i got a..i got a problem i have my Host in City and the Hour doesent go good..its like 1 hour back
Reply
#8

What? Try to improve your English, I didn't understand what do you mean.
Reply
#9

my time in Rl is 6:00 the time in game is 4:00..i have realtime in server...
Reply
#10

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
my time in Rl is 6:00 the time in game is 4:00..i have realtime in server...
look on page 1..this is my problem..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)