Quote:
Originally Posted by EnzoMetlc
No te faltarб cerrar la sentencia? (; ).
pawn Код:
SetPlayerScoreEx(playerid, score);
Si no es eso, pasa el cуdigo anterior y despuйs a ese.
|
gracias problema solucionado pero ahora tengo otro como puedo crearle un settimer a mi sistema de rangos para que cuando pase de nivel se cambien las letras del rango que estan encima de la cabeza del muсeco
public OnPlayerSpawn(playerid)
{
if(GetPlayerScore(playerid) > 0 && GetPlayerScore(playerid) < 10)
{
new Text3D:label = Create3DTextLabel("Private",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.4);
}
else if(GetPlayerScore(playerid) > 10 && GetPlayerScore(playerid) < 50)
{
new Text3D:label1 = Create3DTextLabel("Private First Class",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label1, playerid, 0.0, 0.0, 0.4);
}
else if(GetPlayerScore(playerid) > 50 && GetPlayerScore(playerid) < 100)
{
new Text3D:label2 = Create3DTextLabel("Corporal",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label2, playerid, 0.0, 0.0, 0.4);
}
else if(GetPlayerScore(playerid) > 100 && GetPlayerScore(playerid) < 200)
{
new Text3D:label3 = Create3DTextLabel("Sergeant",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label3, playerid, 0.0, 0.0, 0.4);
}
else if(GetPlayerScore(playerid) > 200 && GetPlayerScore(playerid) < 300)
{
new Text3D:label4 = Create3DTextLabel("Staff Sergeant",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label4, playerid, 0.0, 0.0, 0.4);
}
else if(GetPlayerScore(playerid) > 300 && GetPlayerScore(playerid) < 500)
{
new Text3D:label5 = Create3DTextLabel("Sergeant First Class",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label5, playerid, 0.0, 0.0, 0.4);
}
else if(GetPlayerScore(playerid) > 500 && GetPlayerScore(playerid) < 600)
{
new Text3D:label6 = Create3DTextLabel("Master Sergeant",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label6, playerid, 0.0, 0.0, 0.4);
}
else if(GetPlayerScore(playerid) >= 600)
{
new Text3D:label7 = Create3DTextLabel("Commander",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
}