02.09.2012, 19:01
Ele ta dando erro no GetPlayerFPS
Topo do gm:
OnGameModeInit
Final do gm
Erro nesta linha:
Topo do gm:
pawn Код:
new Text:fpsfps[MAX_PLAYERS];
forward Fpstenso(playerid);
pawn Код:
SetTimer("Fpstenso", 80, 1);
//********************************
for(new i = 0; i < MAX_PLAYERS; i++)
{
fpsfps[i] = TextDrawCreate(570.0, 340.0, " ");
TextDrawBackgroundColor(fpsfps[i], 16711935);
TextDrawFont(fpsfps[i], 1);
TextDrawLetterSize(fpsfps[i], 0.389999, 0.899999);
TextDrawColor(fpsfps[i], 255);
TextDrawSetOutline(fpsfps[i], 1);
TextDrawSetProportional(fpsfps[i], 1);
}
pawn Код:
public Fpstenso()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[64];
TextDrawShowForPlayer(i, fpsfps[i]);
format(string,sizeof(string),"Fps: %i" ,GetPlayerFps(i));
TextDrawSetString(fpsfps[i], string);
}
}
pawn Код:
format(string,sizeof(string),"Fps: %i" ,GetPlayerFps(i));