18.03.2012, 09:55
I want to make a Backup script in my server but I have these errors:
Lines:
(Sorry for my English)
Код:
C:\Users\Dani\Desktop\SAMP\gamemodes\***.pwn(2387) : error 029: invalid expression, assumed zero C:\Users\Dani\Desktop\SAMP\gamemodes\***.pwn(2387 -- 2388) : warning 215: expression has no effect C:\Users\Dani\Desktop\SAMP\gamemodes\***.pwn(2388) : error 001: expected token: ";", but found "return" C:\Users\Dani\Desktop\SAMP\gamemodes\***.pwn(2388) : error 079: inconsistent return types (array & non-array) C:\Users\Dani\Desktop\SAMP\gamemodes\***.pwn(2388) : fatal error 107: too many error messages on one line
pawn Код:
[2380]public BackupTimer()
[2381]{
[2382] for(new x = 0; x < MAX_PLAYERS; x++)
[2383] {
[2384] if(!IsPlayerConnected(x) || !Logged(x) || IsPlayerNPC(x)) continue;
[2385] BackupTime[x] += BackTime;
[2386] if(BackupTime[x] >= BackTimeSave)
[2387] }
[2388] return 1;
[2389]}