SA-MP Forums Archive
[Ajuda] TextDrawSetString Ajuda. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] TextDrawSetString Ajuda. (/showthread.php?tid=613306)



TextDrawSetString Ajuda. - Rollyan - 26.07.2016

Bem eu estou com seguintes erros nessas linhas eu jб procurei entender mais ainda nгo conseguir resolver, espero que me ajudem.
Код HTML:
BMM.pwn(29456) : error 028: invalid subscript (not an array or too many subscripts): "forum2"
BMM.pwn(29456) : warning 215: expression has no effect
BMM.pwn(29456) : error 001: expected token: ";", but found "]"
BMM.pwn(29456) : error 029: invalid expression, assumed zero
BMM.pwn(29456) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Linha dos erros:
Код HTML:
    	new check = PlayerInfo[playerid][pLevel]+1;
        format(gstring,sizeof(gstring),"~b~Nome: ~w~%s    ~b~Level: ~w~%d    ~b~Respeito: ~w~%d~b~ / ~w~%d    ~b~Celular: ~w~%d    ~b~Creditos: ~w~%d", PlayerName(playerid), PlayerInfo[playerid][pLevel],
		PlayerInfo[playerid][pExp], check*levelexp, PlayerInfo[playerid][pPnumber], PlayerInfo[playerid][pCreditos]);
	  TextDrawSetString(forum2[playerid], gstring);
	    gmsg[playerid] = 1;
Espercificamente nesta linha aqui:
Код HTML:
TextDrawSetString(forum2[playerid], gstring);



Re: TextDrawSetString Ajuda. - Rollyan - 26.07.2016

Up Please!!


Respuesta: TextDrawSetString Ajuda. - SammyJ - 26.07.2016

substitua sua variavel forum2 por esta!!!
PHP код:
new Text:forum2[MAX_PLAYERS]; 



Re: TextDrawSetString Ajuda. - Rollyan - 26.07.2016

Mais no caso da TextDraw? ficando new Text:Forum2[MAX_PLAYERS]; ASSIM?


Respuesta: TextDrawSetString Ajuda. - SammyJ - 26.07.2016

sim !


@edit

Sу para deixar claro й que vocк estб usando TextDraws erradamente, olhe estб funзгo

CreatePlayerTextDraw