[Ayuda] їQue falla?
#1

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;
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;
}
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.
Reply
#2

Hey, sube el .pwn.
Reply
#3

Код:
public OnGameModeInit()
{
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);
SetPlayerToTeamColor (playerid)
if(classid == 0){gTeam[playerid] = TEAM_GROVE;}
else{gTeam[playerid] = TEAM_BALLA;}
if(gTeam [playerid] == TEAM_GROVE){SetPlayerColor (playerid, TEAM_GROVE_COLOR);}
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);}
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)
{
return 1;
}
return 0;
}
PD: Solo vi que tenia algunos {} demбs, fijate si te anda ahi, saludos.
Reply
#4

Quote:
Originally Posted by SAMPGammer
Посмотреть сообщение
Hey, sube el .pwn.
No entiendo a que te refieres... :S

PD: Solo vi que tenia algunos {} demбs, fijate si te anda ahi, saludos.

Con fijate a si te anda ahi,supuse que te refieres a que elimine algunos {},pues lo hare y te digo los resultados.

Un salduo y gracias.
Reply
#5

Perdoen el doble post.

Elpiezas, Me sirvio lo de {} de mas,elimine bastante y me bajo a 8 errores de 26,muchas gracias por tu aporte,os mando los errores a ver que opinais;

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"
error 001: expected token: ";", but found "if"
warning 217: loose indentation
error 017: undefined symbol "SetPlayerToTeamColor"
error 001: expected token: ";", but found "if"
warning 217: loose indentation
warning 217: loose indentation
error 017: undefined symbol "SetPlayerToTeamColor"
error 017: undefined symbol "classid"
warning 217: loose indentation

Los warning,si teneis idea de que se deben,decidme(Las modificaciones,son las de antes,aunque ya elimine los {}).
Reply
#6

fijate asi
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass (102, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50);
    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);
    if (classid == 0)gTeam[playerid] = TEAM_GROVE;
    else gTeam[playerid] = TEAM_BALLA;
    return 1;
}


public OnPlayerSpawn(playerid)
{
    if(classid == 0){
        gTeam [playerid] = TEAM_GROVE;
        SetPlayerColor (playerid, TEAM_GROVE_COLOR);
    }
    else{
        gTeam [playerid] = TEAM_BALLA;
        SetPlayerColor (playerid, TEAM_BALLA_COLOR);
    }
    return 1;
}
Reply
#7

Me ha servido para eliminar dos errores,aun me quedan seis,mirare a ver si lo consigo adivinar,si no,os lo envio.

Muchas gracias.
Reply
#8

їPodrнas subir TODO el archivo?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)