I Need Help
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/enter", true) == 0)
    if(IsPlayerInRangeOfPoint(playerid, 3, 1775.9066,-1665.7269,14.4304))
        SetPlayerPos(playerid, 1787.2688, -1659.1866, 16.0000);
{
    return 1;
Im Getting These Errors

Код:
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(94) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(97) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(97) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(97) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(102) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(102) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(102) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(107) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(107) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(107) : error 004: function "OnPlayerStateChange" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(112) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(112) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(112) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(117) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(117) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(117) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(122) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(122) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(122) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(127) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(127) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(127) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(132) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(132) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(132) : error 004: function "OnRconCommand" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(137) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(137) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(137) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(142) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(142) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(142) : error 004: function "OnObjectMoved" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(147) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(147) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(147) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(152) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(152) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(152) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(157) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(157) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\HayZatic's FBI Building Enter.pwn(157) : error 004: function "OnVehicleMod" is not implemented

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


26 Errors.
Reply
#2

Код:
if(strcmp(cmdtext, "/enter", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 3, 1775.9066,-1665.7269,14.4304))
    {
        SetPlayerPos(playerid, 1787.2688, -1659.1866, 16.0000);
    }
    return 1;
}
didn't i already give you this -.-?
Reply
#3

Your {} brackets are messed up. Be sure all brackets you open are also closed later.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/enter", true) == 0)
    if(IsPlayerInRangeOfPoint(playerid, 3, 1775.9066,-1665.7269,14.4304))
        SetPlayerPos(playerid, 1787.2688, -1659.1866, 16.0000);

    return 1;
}   // return should always be the last line of a function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)