03.07.2015, 17:55
Boa tarde, meu sistema de level nгo aumenta o level ou score do player, o que tem de errado??
PHP код:
forward UparLevel(playerid);
public UparLevel(playerid)
{
if( IsPlayerConnected( playerid ) && Logado[playerid] == true )
{
new Arquivolvl[40];
if(PlayerInfo[playerid][pRespeito] == 4 )
{
PlayerInfo[playerid][pLevel] ++ ;
PlayerInfo[playerid][pRespeito] = 0;
SendClientMessage(playerid,-1,"{7FFF00}| LEVEL | Parabйns! Vocк juntou {FFFFFF}[ 5/5 ]{7FFF00} de experiкncia e ganhou {FFFFFF}+1 {7FFF00}Level.");
GameTextForPlayer(playerid, "~w~~h~UP ", 3000, 6);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
DOF2_SetInt(Arquivolvl,"Level",PlayerInfo[playerid][pLevel]);
SetPlayerScore(playerid,DOF2_GetInt(Arquivolvl,"Level"));
PagarSalario(playerid);
}
else
{
PlayerInfo[playerid][pRespeito] ++;
format(stringmedia, sizeof(stringmedia), "{7FFF00}| UP | Vocк ganhou {FFFFFF}[ %d/5 ] {7FFF00}de experiкncia!", PlayerInfo[playerid][pRespeito]);
SendClientMessage(playerid,0xFFFFFFAA,stringmedia);
GameTextForPlayer(playerid, "~r~~h~+~w~EXP", 3000, 6);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
DOF2_SetInt(Arquivolvl,"EXP",PlayerInfo[playerid][pRespeito]);
}
}
return 1;
}