erro no rodapй -
yNexus - 10.10.2013
eu tinha um textdraw como rodapй ai resolvi fazer uns negocios aki e fico assim :
Код:
//[.]Roda Pe ><
new string[128];
format(string, sizeof(string), "- Nick: %s | ID: %d", PlayerName(playerid),playerid);
TextDrawBackgroundColor(Textdraw18, 255);
TextDrawFont(Textdraw18, 1);
TextDrawLetterSize(Textdraw18, 0.500000, 1.600000);
TextDrawColor(Textdraw18, -1);
TextDrawSetOutline(Textdraw18, 1);
TextDrawSetProportional(Textdraw18, 1);
//[.]Roda Pe ><
Код:
new Text:Textdraw18;
Mais Da Esses Erros :
Код:
C:\Users\yNexus\Desktop\GM.pwn(3960) : error 017: undefined symbol "playerid"
Ja Procurei Sobre Rodapй, Nгo Consegui Resolver Mais Alguns Falavam Que Tinha Erro, Que Quando Logar Mais De 1 Pessoa O Level Ficava Trocando Os Leveis, Tipo Um Era Lvl 10 E Outro 20, No Rodapй Dos 2 O Nivel Ficava Aparecendo 10 e dps 20 dps 10 dps 20 E Fica Assim, E Tbm Preciso De Algo Que Fassa O Rodapй Atualizar, Obrigado !
Re: erro no rodapй -
Duduzinho - 10.10.2013
Acho melhor ir na Wiki pq esta fazendo da Forma Icorreta
https://sampwiki.blast.hk/wiki/TextDraws
Re: erro no rodapй -
arakuta - 11.10.2013
Precisa usar Per-Player TextDraws amigo!
Re: erro no rodapй -
RuanRider - 11.10.2013
Код:
//[.]Roda Pe ><
new string[128];
format(string, sizeof(string), "- Nick: %s | ID: %d", PlayerName(playerid),playerid);
PlayerTextDrawBackgroundColor(playerid, Textdraw18, 255);
PlayerTextDrawFont(playerid, Textdraw18, 1);
PlayerTextDrawLetterSize(playerid, Textdraw18, 0.500000, 1.600000);
PlayerTextDrawColor(playerid, Textdraw18, -1);
PlayerTextDrawSetOutline(playerid, Textdraw18, 1);
PlayerTextDrawSetProportional(playerid, Textdraw18, 1);
//[.]Roda Pe ><
Substitui o CreateTextDraw por CreatePlayerTextDraw. Nгo vi ele no seu cуdigo, entгo substitua vocк msm.
Coloka esse cуdigo todo no OnPlayerConnect e tira do OnGameModeInit tmb.
Re: erro no rodapй -
Smoking_Script - 24.10.2013
Quote:
Originally Posted by yNexus
eu tinha um textdraw como rodapй ai resolvi fazer uns negocios aki e fico assim :
Код:
//[.]Roda Pe ><
new string[128];
format(string, sizeof(string), "- Nick: %s | ID: %d", PlayerName(playerid),playerid);
TextDrawBackgroundColor(Textdraw18, 255);
TextDrawFont(Textdraw18, 1);
TextDrawLetterSize(Textdraw18, 0.500000, 1.600000);
TextDrawColor(Textdraw18, -1);
TextDrawSetOutline(Textdraw18, 1);
TextDrawSetProportional(Textdraw18, 1);
//[.]Roda Pe ><
Код:
new Text:Textdraw18;
Mais Da Esses Erros :
Код:
C:\Users\yNexus\Desktop\GM.pwn(3960) : error 017: undefined symbol "playerid"
Ja Procurei Sobre Rodapй, Nгo Consegui Resolver Mais Alguns Falavam Que Tinha Erro, Que Quando Logar Mais De 1 Pessoa O Level Ficava Trocando Os Leveis, Tipo Um Era Lvl 10 E Outro 20, No Rodapй Dos 2 O Nivel Ficava Aparecendo 10 e dps 20 dps 10 dps 20 E Fica Assim, E Tbm Preciso De Algo Que Fassa O Rodapй Atualizar, Obrigado !
|
mano ta dando esse erro por causa
Код:
format(string, sizeof(string), "- Nick: %s | ID: %d", PlayerName(playerid),playerid);
// isso nn vai pegar porq vc coloco no ongamemode tenta por em alguma public ou stock
Re: erro no rodapй -
iWallkinG - 24.10.2013
que GM Vocк estб usando?
Re: erro no rodapй -
iDreak - 24.10.2013
pawn Код:
//[.]Roda Pe ><
new string[128];
format(string, sizeof(string), "- Nick: %s | ID: %d", PlayerName(playerid),playerid);
PlayerTextDrawBackgroundColor(playerid, Textdraw18, 255);
PlayerTextDrawFont(playerid, Textdraw18, 1);
PlayerTextDrawLetterSize(playerid, Textdraw18, 0.500000, 1.600000);
PlayerTextDrawColor(playerid, Textdraw18, -1);
PlayerTextDrawSetOutline(playerid, Textdraw18, 1);
PlayerTextDrawSetProportional(playerid, Textdraw18, 1);
//[.]Roda Pe ><
Coloca isso em
OnPlayerConnect e tira do
OnGameModeInit
Re: erro no rodapй -
PT - 24.10.2013
Quote:
Originally Posted by iDreak
pawn Код:
//[.]Roda Pe >< new string[128]; format(string, sizeof(string), "- Nick: %s | ID: %d", PlayerName(playerid),playerid); PlayerTextDrawBackgroundColor(playerid, Textdraw18, 255); PlayerTextDrawFont(playerid, Textdraw18, 1); PlayerTextDrawLetterSize(playerid, Textdraw18, 0.500000, 1.600000); PlayerTextDrawColor(playerid, Textdraw18, -1); PlayerTextDrawSetOutline(playerid, Textdraw18, 1); PlayerTextDrawSetProportional(playerid, Textdraw18, 1); //[.]Roda Pe ><
Coloca isso em OnPlayerConnect e tira do OnGameModeInit
|
Se ele fizer isso darб erro no playerid .
Re: erro no rodapй -
iDreak - 24.10.2013
Quote:
Originally Posted by PT
Se ele fizer isso darб erro no playerid .
|
n darб erro nгo porque ele esta colocando em OnGameModeInit ele tem que tirar do OnGameModeInit e colocar em OnPlayerConnect