Errors :/
#1

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;

}
Reply
#2

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;

}
Reply
#3

thanks

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

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

Reply
#5

any help?
Reply
#6

Show me the code.
Reply
#7

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
Reply
#8

...give me the lines from 22291 to 22338
Reply
#9

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...
Reply
#10

i fixed the errors thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)