04.12.2010, 19:52
warning 213: tag mismatch
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
error 001: expected token: ";", but found "return"
error 017: undefined symbol "SetPlayerTeamFromClass"
error 017: undefined symbol "SetPlayerTeamFromClass"
warning 217: loose indentation
warning 217: loose indentation
error 017: undefined symbol "SetPlayerToTeamColor"
warning 217: loose indentation
warning 217: loose indentation
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerConnect" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerDisconnect" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerSpawn" is not implemented
error 017: undefined symbol "SetPlayerToTeamColor"
warning 217: loose indentation
warning 225: unreachable code
warning 217: loose indentation
error 029: invalid expression, assumed zero
error 004: function "OnPlayerDeath" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnVehicleSpawn" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnVehicleDeath" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerText" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerCommandText" is not implemented
error 017: undefined symbol "cmdtext"
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerEnterVehicle" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerExitVehicle" is not implemented
Me sigue dando estos errores ;S
Esto es lo unico que he aсadido/modificado;
Cabe mencionar,que estoy aprendiendo,llevo por decirlo de alguna forma,un 3% de aprendizaje,asi que quizas sea una chorrada la respuesta de lo que esta mal para vosotros,pero para mi,al ser nuevo,esto me falla :S
Espero vuestra respuesta.
Un saludo.
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
error 001: expected token: ";", but found "return"
error 017: undefined symbol "SetPlayerTeamFromClass"
error 017: undefined symbol "SetPlayerTeamFromClass"
warning 217: loose indentation
warning 217: loose indentation
error 017: undefined symbol "SetPlayerToTeamColor"
warning 217: loose indentation
warning 217: loose indentation
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerConnect" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerDisconnect" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerSpawn" is not implemented
error 017: undefined symbol "SetPlayerToTeamColor"
warning 217: loose indentation
warning 225: unreachable code
warning 217: loose indentation
error 029: invalid expression, assumed zero
error 004: function "OnPlayerDeath" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnVehicleSpawn" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnVehicleDeath" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerText" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerCommandText" is not implemented
error 017: undefined symbol "cmdtext"
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerEnterVehicle" is not implemented
warning 225: unreachable code
error 029: invalid expression, assumed zero
error 004: function "OnPlayerExitVehicle" is not implemented
Me sigue dando estos errores ;S
Esto es lo unico que he aсadido/modificado;
pawn Код:
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass (102, 1958,3783, 1343,1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50);
CreateVehicle(1, 1958,3783, 1343,1572, 15.3746, 269.1425, 245, 245, 245);
AddStaticVehicle (411, 2040,2279, 1344,4127, 10.6719, 3.5436, 126, 54)
return 1;
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerTeamFromClass(playerid, classid)
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0)
{
gTeam[playerid] = TEAM_GROVE;
}
else
{
gTeam[playerid] = TEAM_BALLA;
}
SetPlayerToTeamColor (playerid)
{
if (gTeam [playerid] == TEAM_GROVE)
{
SetPlayerColor (playerid, TEAM_GROVE_COLOR);
}
else if (gTeam [playerid] == TEAM_BALLA)
{
SetPlayerColor (playerid, TEAM_BALLA_COLOR);
}
{
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerToTeamColor (playerid);
if (classid == 0)
{
gTeam [playerid] = TEAM_GROVE;
}
else
{
gTeam [playerid] = TEAM_BALLA;
}
if (gTeam [playerid] == TEAM_GROVE)
{
SetPlayerColor (playerid, TEAM_GROVE_COLOR);
}
else if (gTeam [playerid] == TEAM_BALLA)
{
SetPlayerColor (playerid, TEAM_BALLA_COLOR);
}
else
{
SetPlayerColor (playerid, TEAM_BALLA_COLOR);
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
Espero vuestra respuesta.
Un saludo.