There is written that it only works with 0.3b, so will I be able to use it now? By the way, the FPS should only be displayed in the left corner at the bottom, so which part of the textdraws would remove the one in the upper right corner?
|
I simlpy will use your pastebin, okay? And the "for-loop" under "OnFilterscriptInit", I should add to my "OnGameModeInit", right?
|
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(1341) : warning 225: unreachable code D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(2256) : error 017: undefined symbol "string" D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(2256) : error 017: undefined symbol "string" D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(2256) : error 029: invalid expression, assumed zero D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(2256) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
forward FPSUP();
public FPSUP()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
format(string,sizeof(string),"FPS: %d",FPS2[i]-1); //here
TextDrawSetString(FPS[i],string); //here
}
continue;
}
}
public OnGameModeInit() {
//other stuff
for(new i=0; i < sizeof(ZoneInfo); i++)
{
ZoneID[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]);
}
//////here is your's
for(new i = 0; i < MAX_PLAYERS; i++)
{
FPS[i] = TextDrawCreate(8.000000, 428.000000, "FPS: 30");
TextDrawBackgroundColor(FPS[i], 255);
TextDrawFont(FPS[i], 3);
TextDrawLetterSize(FPS[i], 0.480000, 2.000000);
TextDrawColor(FPS[i], -65281);
TextDrawSetOutline(FPS[i], 1);
TextDrawSetProportional(FPS[i], 1);
}
SetTimer("FPSUP",1203,true);
return 1;
DisableInteriorEnterExits();
//rest of callback
new string[24];
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(1342) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
public OnGameModeInit() {
//other stuff
for(new i=0; i < sizeof(ZoneInfo); i++)
{
ZoneID[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]);
}
//from here, yours begins
for(new i = 0; i < MAX_PLAYERS; i++)
{
FPS[i] = TextDrawCreate(8.000000, 428.000000, "FPS: 30");
TextDrawBackgroundColor(FPS[i], 255);
TextDrawFont(FPS[i], 3);
TextDrawLetterSize(FPS[i], 0.480000, 2.000000);
TextDrawColor(FPS[i], -65281);
TextDrawSetOutline(FPS[i], 1);
TextDrawSetProportional(FPS[i], 1);
}
SetTimer("FPSUP",1203,true);
return 1;
DisableInteriorEnterExits(); //here is the warning, never happened before