Script error
#1

Hello, i have problems with my script.. When i set this to top of my script(or at the end), it gives me some errors, not just for this code, its same for some of them, i delete this and Script has no problems, but when I set this or some script with forward/public, it fu*ks me haha...
Code:
Код:
forward AntiSpawnkill(playerid); //istek
public AntiSpawnkill(playerid)
{
    SetPlayerHealth(playerid, 100.0);
    SendClientMessage(playerid, SCrvena, "Anti-SK zastita je istekla!");
    return 1;
}
C:\Users\\Desktop\\gamemodes\a.pwn(22902) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(22902) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(22903) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(22903) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(22904) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(22904) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(22905) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(22905) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(22907) : warning 217: loose indentation
C:\Users\\Desktop\\gamemodes\a.pwn(30903) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(30903) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(30904) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(30904) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(30905) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(30905) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\\gamemodes\a.pwn(30905) : warning 215: expression has no effect
C:\Users\\Desktop\\gamemodes\a.pwn(30905) : error 001: expected token: ";", but found "return"
C:\Users\\Desktop\\gamemodes\a.pwn(30905) : fatal error 107: too many error messages on one line


I set this under OnPlayerSpawn, errors are the same
Код:
    SetPlayerHealth(playerid, 999999999.0);
    SendClientMessage(playerid, SCrvena, "{FFFFFF}Imas 10 sekundi AntiSK zastite!");
    SetPlayerChatBubble(playerid, "Anti-SK zasticen", 0x00C0FF, 100.0, 10000);
    SetTimerEx("AntiSpawnkill",10000,0,"i",playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)