[Ajuda] erro no rodapй
#1

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 !
Reply
#2

Acho melhor ir na Wiki pq esta fazendo da Forma Icorreta

https://sampwiki.blast.hk/wiki/TextDraws
Reply
#3

Precisa usar Per-Player TextDraws amigo!
Reply
#4

Код:
//[.]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.
Reply
#5

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);
Код:
,playerid);
// isso nn vai pegar porq vc coloco no ongamemode tenta por em alguma public ou stock
Reply
#6

que GM Vocк estб usando?
Reply
#7

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
Reply
#8

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 .
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)