Getting error all the time.
#1

I get this shit all the time I can't fix it:

D:\Pwno tools\pawno\gdfgd.pwn(105) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(105) : warning 217: loose indentation
D:\Pwno tools\pawno\gdfgd.pwn(109) : warning 217: loose indentation
D:\Pwno tools\pawno\gdfgd.pwn(109) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(109) : error 004: function "OnPlayerEnterVehicle" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(114) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(114) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(114) : error 004: function "OnPlayerExitVehicle" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(119) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(119) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(119) : error 004: function "OnPlayerStateChange" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(124) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(124) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(124) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(129) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(129) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(129) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(134) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(134) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(134) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(139) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(139) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(139) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(144) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(144) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(144) : error 004: function "OnRconCommand" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(149) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(149) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(149) : error 004: function "OnPlayerRequestSpawn" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(154) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(154) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(154) : error 004: function "OnObjectMoved" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(159) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(159) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(159) : error 004: function "OnPlayerObjectMoved" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(164) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(164) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(164) : error 004: function "OnPlayerPickUpPickup" is not implemented
D:\Pwno tools\pawno\gdfgd.pwn(169) : warning 225: unreachable code
D:\Pwno tools\pawno\gdfgd.pwn(169) : error 029: invalid expression, assumed zero
D:\Pwno tools\pawno\gdfgd.pwn(169) : error 004: function "OnVehicleMod" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

You're missing bracket(s) before line 109. If you want, post the code here so we can check where.
Reply
#3

I get this:
D:\Pwno tools\pawno\this is new.pwn(94) : error 001: expected token: ";", but found "return"
D:\Pwno tools\pawno\this is new.pwn(94) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


AND THIS IS WHAT I GOT:
this happens when I try to compile it

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0)
return 1;
}
return 0;
}
Reply
#4

You forgot a semicolon ; in the line above return. Also the lenght of "/kill" is not 10 and because it's optional, don't use it at all.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    return 0;
}
Reply
#5

Код:
public OnPlayerCommandText(playerid, cmdtext[])
 {
 if (strcmp("/kill", cmdtext, true, 10) == 0)
 {
 SetPlayerHealth(playerid, 0);
 return 1;
 }
 return 0;
 }
Check!!
Reply
#6

Worked thanks!~!!!~~
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)