SA-MP Forums Archive
Errors :/ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors :/ (/showthread.php?tid=499485)



Errors :/ - mahmoudalzamalkawy - 08.03.2014

i got those error during compiling

Quote:

C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22235) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22237) : error 017: undefined symbol "C14124"
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22239) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22239) : error 017: undefined symbol "s"
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22241) : warning 217: loose indentation
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22241) : error 017: undefined symbol "BBBBBB"
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22243) : warning 217: loose indentation
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22243) : error 017: undefined symbol "exited"
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22243) : error 017: undefined symbol "the"
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22243) : error 017: undefined symbol "server"
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22243) : fatal error 107: too many error messages on one line

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


9 Errors.

the lines

Код HTML:
public OnPlayerDisconnect(playerid, reason)
{
if(PlayerToKick == playerid)

{
	GetPlayerName(playerid, name, sizeof(name));
	format(string, sizeof(string), "
	{
		C14124
	}
	%s
	{
		BBBBBB
	}
	exited the server, so the votekick has been closed automatically.", name);
	SendClientMessageToAll(COLOR_OK, string);
	Yes=0,No=0,PlayerToKick=-1, seconds=60, IsVoteKickStarted=false;
	TextDrawHideForAll(Background);
	TextDrawHideForAll(VoteKickTitle);
	TextDrawHideForAll(VoteKickName);
	TextDrawHideForAll(VoteKickVote);
	TextDrawSetString(VoteKickVote,"~g~~h~Yes~w~: 0  ~r~No~w~: 0");
	TextDrawHideForAll(VoteKickTime);
	return 1;

}



Re: Errors :/ - QuaTTrO - 08.03.2014

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(PlayerToKick == playerid)

{
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "{C14124}%s {BBBBBB}exited the server, so the votekick has been closed automatically.", name);
    SendClientMessageToAll(COLOR_OK, string);
    Yes=0,No=0,PlayerToKick=-1, seconds=60, IsVoteKickStarted=false;
    TextDrawHideForAll(Background);
    TextDrawHideForAll(VoteKickTitle);
    TextDrawHideForAll(VoteKickName);
    TextDrawHideForAll(VoteKickVote);
    TextDrawSetString(VoteKickVote,"~g~~h~Yes~w~: 0  ~r~No~w~: 0");
    TextDrawHideForAll(VoteKickTime);
    return 1;

}



Re: Errors :/ - mahmoudalzamalkawy - 08.03.2014

thanks

notice : any one don't use this site : boylett.com/scripts/autoindent.php
this site damaged my gm


Re: Errors :/ - mahmoudalzamalkawy - 08.03.2014

PHP код:
C:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22291) : warning 217loose indentation
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22318) : warning 217loose indentation
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22338) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22338) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22338) : error 004: function "OnPlayerEnterVehicle" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22343) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22343) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22343) : error 004: function "OnPlayerExitVehicle" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22348) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22348) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22348) : error 004: function "OnPlayerStateChange" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22353) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22353) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22353) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22358) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22358) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22358) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22363) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22363) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22363) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22368) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22368) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22368) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22373) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22373) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22373) : error 004: function "OnRconCommand" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22378) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22378) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22378) : error 004: function "OnPlayerRequestSpawn" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22383) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22383) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22383) : error 004: function "OnObjectMoved" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22388) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22388) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22388) : error 004: function "OnPlayerObjectMoved" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22393) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22393) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22393) : error 004: function "OnPlayerPickUpPickup" is not implemented
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22398) : warning 225unreachable code
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22398) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Ayman\Desktop\New Folder\gamemodes\Rolenroleplay.pwn(22398) : error 004: function "OnVehicleMod" is not implemented
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
26 Errors




Re: Errors :/ - mahmoudalzamalkawy - 08.03.2014

any help?


Re: Errors :/ - Matess - 08.03.2014

Show me the code.


Re: Errors :/ - mahmoudalzamalkawy - 08.03.2014

here it is
Quote:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

i don't know why there errors and they are empty


Re: Errors :/ - Matess - 08.03.2014

...give me the lines from 22291 to 22338


Re: Errors :/ - Threshold - 08.03.2014

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(PlayerToKick == playerid)
    {
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "{C14124}%s {BBBBBB}exited the server, so the votekick has been closed automatically.", name);
        SendClientMessageToAll(COLOR_OK, string);
        new Yes = 0, No = 0, PlayerToKick = -1, seconds = 60, IsVoteKickStarted = false;
        TextDrawHideForAll(Background);
        TextDrawHideForAll(VoteKickTitle);
        TextDrawHideForAll(VoteKickName);
        TextDrawHideForAll(VoteKickVote);
        TextDrawSetString(VoteKickVote,"~g~~h~Yes~w~: 0  ~r~No~w~: 0");
        TextDrawHideForAll(VoteKickTime);
    }
}
The other poster forgot to close the brace...


Re: Errors :/ - mahmoudalzamalkawy - 08.03.2014

i fixed the errors thanks