| Pietricel a întrebat:

Salut b ai! M-am uitat si eu la clipul lui ZeCo sau tutorialul despre pawno #1. Am facut/scris tot ce e acolo si da erori. Asta e ce am scris: #include

forward OneSecTimer();

new lasttick= 0;

main()
{
print ("\n----------------------------------");
print (" This is a blank GameModeScript");
print ("----------------------------------\n");
}

public OnGameModeInit()
{
// Set timer for 1 second.
SetTimer("OneSecTimer", 1000, 1);
print("GameModeInit()");
SetGameModeText("Timer Test");
AddPlayerClass(0, 1958.3783, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0, 0, );
return 1;
}

public OneSecTimer() {
if(lasttick == 0) {
lasttick = GetTickCount();
return;
)
new aText[256];
format (aText, sizeof(aText), "GetTickCountOffset - %d", GetTickCount() - lasttick);
print(aText);
SendClientMessageToAll(0xFF0000, aText);
lasttick - GetTickCount();
}

Si erorile: C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(20) : error 029: invalid expression, assumed zero
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(20) : warning 202: number of arguments does not match definition
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(20) : error 001: expected token: ",", but found ";"
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(28) : warning 225: unreachable code
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(28) : warning 217: loose indentation
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(28) : error 029: invalid expression, assumed zero
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(28 -- 29) : warning 215: expression has no effect
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(29) : error 001: expected token: ";", but found "new"
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(33) : warning 215: expression has no effect
C:\Users\Ioana\Desktop\samp037_svr_R2-1-1_win32\gamemode s\Star.pwn(35) : error 030: compound statement not closed at the end of file (started at line 25)
Pawn compiler 3.2. 3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Help! Cat de repede se poate!

1 răspuns:
| Pietricel explică:

Am rezolvat. Ms oricum