[AJUDA]Criados TextLabel
#1

pawn Код:
//criadostextlabel
    if(strcmp(cmd, "/ctl", true) == 0)
    {
    if(PlayerInfo[playerid][Level] >= 2) {
    if(strlen(cmdtext) < 5)
    return SendClientMessage(playerid, -1,"Use: /ctl <texto>");
    if(GetPVarInt(playerid,"label")==1)return SendClientMessage(playerid,red,"ERRO: Vocк Ja Tem Um TextLabel Use: /deltl Para Deletalo");
    new string__[256], Float:X,Float:Y,Float:Z;
    format(string__, sizeof(string__),"%s",cmdtext[4]);
    GetPlayerPos(playerid,X,Y,Z);
    SetPVarInt(playerid,"LABEL",Create3DTextLabel(string__,-1,X,Y,Z,100.1,0));//Linha 4998
    return 1;
    } else SendClientMessage(playerid,red,"ERRO: Vocк nao tem permissгo para isso");
    return 1;   }




//deletarlabel
    if(strcmp(cmd, "/deltl", true) == 0)
    {
    if(PlayerInfo[playerid][Level] >= 2) {
    if(GetPVarInt(playerid,"label")==0)return SendClientMessage(playerid,red,"Vocк Ainda Nгo Criou Nenhum TextLabel Use: /ctl");
    Delete3DTextLabel(GetPVarInt(playerid,"LABEL"));// Linha 5007
    SetPVarInt(playerid,"label",0);
    return 1;
    } else SendClientMessage(playerid,red,"ERRO: Vocк nao tem permissгo para isso");
    return 1;   }



Warnings:

pawn Код:
D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\ladmin4v2.pwn(4998) : warning 213: tag mismatch
D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\ladmin4v2.pwn(5007) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#2

Mande as Linhas 4998, 5007.
Reply
#3

Observe,pois algum parametro deve estar trocado.
Reply
#4

A Linha 4998 e :
pawn Код:
SetPVarInt(playerid,"LABEL",Create3DTextLabel(string__,-1,X,Y,Z,100.1,0));
A Linha 5007 e:
pawn Код:
Delete3DTextLabel(GetPVarInt(playerid,"LABEL"));
sou meio iniciante mas tenta issu
pawn Код:
if Delete3DTextLabel(GetPVarInt(playerid,"LABEL");
sei q pode tar totalmente errado mas nao custa eu tentar.
Reply
#5

Nem Deu mau.tito
Reply
#6

bom o seguundo warn tente usar assim
pawn Код:
Delete3DTextLabel(Text3D:GetPVarInt(playerid,"LABEL"));
Reply
#7

й Agora Ficou So o 1є
Reply
#8

o problema do primeiro й o SetPVarInt pois vocк definiu as coordenadas em X,Y,Z se nгo me engano... estou a ver isso aqui D: nгo me garanto muito nisso
Reply
#9

Quote:
Originally Posted by ReDKiiL
Посмотреть сообщение
Nem Deu mau.tito
Bom Mas Tentei Ajudar
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)