SA-MP Forums Archive
[Ajuda] Grana level e Estudo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Grana level e Estudo (/showthread.php?tid=587979)



Grana level e Estudo - Gederlan02 - 04.09.2015

bom queria mudar grana, level, Estudo de uma gm como eu troco ? Alguйm pode me ajudar ?


Re: Grana level e Estudo - focaximubh - 04.09.2015

Um minuto mizifihi vу cуnsъltб nуssus anjo pб dб o seu distino




@OBS: Que tal vocк colocar algo mais certo tipo....

pawn Код:
//Tenho meu sistema de level
pData[playerid][pLevel]



Re: Grana level e Estudo - Gederlan02 - 04.09.2015

if(IsPlayerConnected(i))
{
GetPlayerName(i, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);

SetPlayerScore(i, dini_Int(file, "Level"));

#if defined gText1User
if(PlayerInfo[i][gText1] != PlayerText:INVALID_TEXT_DRAW)
{
format(string, sizeof(string), "~r~EXP: ~b~%d/%d~n~~r~Level: ~b~%d/%d~n~~r~Estudo: ~b~%d/%d~n~~r~Players: ~b~%i/%i~n~~r~Seu ID: ~b~%d", dini_Int(file, "EXP"), MAX_PLAYER_EXP, dini_Int(file, "Level"), MAX_PLAYER_LEVEL, dini_Int(file, "Faculdade"), MAX_PLAYER_ESTUDO, totalon, GetMaxPlayers(), i);
PlayerTextDrawSetString(i, PlayerInfo[i][gText1], string);
}
#endif

#if defined gText2User
if(PlayerInfo[i][gText2] != PlayerText:INVALID_TEXT_DRAW)
{
format(string, sizeof(string), "..:: %02d~b~/~w~%02d~b~/~w~%04d ~b~- ~w~%02d~b~:~w~%02d~b~:~w~%02d ::.. ..:: ~r~Dias VIP: ~w~%d ::..", day, month, year, hour, minute, second, GetVIPDays(i));
PlayerTextDrawSetString(i, PlayerInfo[i][gText2], string);
}
#endif

if(GPS_Spawned[i] == 1 && PlayerInfo[i][AreaName] != PlayerText:INVALID_TEXT_DRAW)
{
format(string, sizeof(string), "Local: ~b~%s", GetPlayerArea(i));
PlayerTextDrawSetString(i, PlayerInfo[i][AreaName], string);
}

// Nгo usar no OnPlayerUpdate
UpdateSpeed(i);
UpdateCarInfos(i);
}
}
return 1;
}