new Text:TxdStatus3[MAX_PLAYERS];
Em Gamemodeinit:
for(new i; i < GetMaxPlayers(); i++)
{
TxdStatus3[i] = TextDrawCreate(509.000000, 364.000000, " "); //FPS: 100
TextDrawBackgroundColor(TxdStatus3[i], 255);
TextDrawFont(TxdStatus3[i], 1);
TextDrawLetterSize(TxdStatus3[i], 0.250000, 1.400000);
TextDrawColor(TxdStatus3[i], -1);
TextDrawSetOutline(TxdStatus3[i], 1);
TextDrawSetProportional(TxdStatus3[i], 1);
}
Talvez ja atingiu o limite de Textdraws... usa PlayerTextDraw neste caso muito melhor
|
new PlayerText:TxdStatus3[MAX_PLAYERS];
Em Gamemodeinit:
for(new i; i < GetMaxPlayers(); i++)
{
TxdStatus3[i] = CreatePlayerTextDraw(playerid, 509.000000, 364.000000, " "); //FPS: 100
PlayerTextDrawBackgroundColor(playerid, TxdStatus3[i], 255);
PlayerTextDrawFont(playerid, TxdStatus3[i], 1);
PlayerTextDrawLetterSize(playerid, TxdStatus3[i], 0.250000, 1.400000);
PlayerTextDrawColor(playerid, TxdStatus3[i], -1);
PlayerTextDrawSetOutline(playerid, TxdStatus3[i], 1);
PlayerTextDrawSetProportional(playerid, TxdStatus3[i], 1);
}
PHP код:
|
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8473) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8473) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8474) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8474) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8475) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8475) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8476) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8476) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8477) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8477) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8562) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8562) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8563) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8563) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8563) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8564) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8564) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8564) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8565) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8565) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8565) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8566) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8566) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8566) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8567) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8567) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8567) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8568) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8568) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8568) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8569) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8569) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8569) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8570) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8570) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8570) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8571) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8571) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8571) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8572) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8572) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8572) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8574) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8574) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8575) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8575) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8575) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8576) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8576) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8576) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8577) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8577) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8577) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8578) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8578) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8578) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8579) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8579) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8579) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8580) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8580) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8580) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8582) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8582) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8583) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8583) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8583) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8584) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8584) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8584) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8585) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8585) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8585) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8586) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8586) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8586) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8587) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8587) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8587) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8588) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8588) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8588) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8590) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8590) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8591) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8591) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8591) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8592) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8592) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8592) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8593) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8593) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8593) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8594) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8594) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8594) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8595) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8595) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8595) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8596) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8596) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8596) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8598) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8598) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8599) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8599) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8599) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8600) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8600) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8600) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8601) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8601) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8601) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8602) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8602) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8602) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8603) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8603) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8603) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8604) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8604) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8604) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8606) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8606) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8607) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8607) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8607) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8608) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8608) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8608) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8609) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8609) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8609) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8610) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8610) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8610) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8611) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8611) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8611) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8612) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8612) : warning 213: tag mismatch
C:\Documents and Settings\Administrador\Desktop\Gmmm\include\ZNSUP.pwn(8612) : warning 202: number of arguments does not match definition
new PlayerText:TxdStatus3[MAX_PLAYERS];
Em gamemodeinit:
for(new i; i < GetMaxPlayers(); i++)
{
TxdStatus3[i] = CreatePlayerTextDraw(i,509.000000, 364.000000, " "); //FPS: 100
PlayerTextDrawBackgroundColor(i,TxdStatus3[i], 255);
PlayerTextDrawFont(i,TxdStatus3[i], 1);
PlayerTextDrawLetterSize(i,TxdStatus3[i], 0.250000, 1.400000);
PlayerTextDrawColor(i,TxdStatus3[i], -1);
PlayerTextDrawSetOutline(i,TxdStatus3[i], 1);
PlayerTextDrawSetProportional(i,TxdStatus3[i], 1);
}
forward UpdateTxDStatus(playerid);
public UpdateTxDStatus(playerid)
{
new ppFPS[42];
format(ppFPS,sizeof(ppFPS),"FPS: %i",GetPlayerFPS(playerid));
PlayerTextDrawSetString(playerid,TxdStatus3[playerid],ppFPS);
return 1;
}
Em OnPlayerSpawn:
TextDrawShowForPlayer(playerid, TxdStatus3[playerid]);
Tenta ver nesse topico se consegue extrair algo que te ajude. No topico informa que funciona apnas nas versхes 03b do servidor, mas talvez ajude.
http://forum.sa-mp.com/showthread.ph...t=GetPlayerFPS Tem esses tbm, creio que dк pra extrair algo sobre FPS: https://sampforum.blast.hk/showthread.php?tid=288722 https://sampforum.blast.hk/showthread.php?tid=321753 E principalmente esse, o membro que estava com duvida conseguiu fazer funcionar o que postaram no post #24: https://sampforum.blast.hk/showthread.php?tid=333498&page=3 E esse outro topico aqui mais atual (19/02/15) https://sampforum.blast.hk/showthread.php?tid=564098 |