SA-MP Forums Archive
TextDraw Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDraw Problem (/showthread.php?tid=403341)



TextDraw Problem - Akcent_Voltaj - 30.12.2012

what is wrong in this??

Delete3DTextLabel(housesale[id]);

errors:

PHP код:
error 028invalid subscript (not an array or too many subscripts): "housesale"
warning 215expression has no effect
error 001
expected token";"but found "]"
error 029invalid expressionassumed zero
fatal error 107
too many error messages on one line 



Re: TextDraw Problem - Riddy - 30.12.2012

whats the error?


Re: TextDraw Problem - Threshold - 30.12.2012

Where are you getting the value of h from? A loop?


Re: TextDraw Problem - Akcent_Voltaj - 30.12.2012

PHP код:
    forward OnPlayerUpdateTD(update,id);
                    public 
OnPlayerUpdateTD(update,id)
                    {
                    new 
stri[1025];
                    if(
update == 1)
                    {
                     if(
HouseInfo[id][hOwned] == 0)
                    {
                        
//Delete3DTextLabel(housesale,id);
                        
format(strisizeof(stri), "Vanzare Casa\nId Casa: %d\nPret: %dLei\nLevel Necesar: %d"idHouseInfo[id][hValue], HouseInfo[id][hLevel]);
                        
housesale Create3DTextLabel(stri,0xFF0000FF,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],2501);
                          
CreateDynamicPickup(12731HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez]);
                    }
                    if(
HouseInfo[id][hOwned] == 1)
                    {
                        
//Delete3DTextLabel(housesale,id);
                        
format(strisizeof(stri), " Proprietar Casa: %s\nId Casa: %d",HouseInfo[id][hOwner],id);
                        
Create3DTextLabel(stri,0xFF0000FF,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez],2501);
                        
CreateDynamicPickup(12721HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez]);
                     }
                }
                else if(
update == 2)
                {
                    if(
BizzInfo[id][bOwned] == 0)
                    {
                        
format(strisizeof(stri), "Vanzare Afacere\nPret: %dLei\nLevel Necesar: %d\n",BizzInfo[id][bBuyPrice], BizzInfo[id][bLevelNeeded]);
                        
bizsale Create3DTextLabel(stri,0x00808000,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ],5001);
                        
CreateDynamicPickup(12741BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ]);
                        
pickups++;
                    }
                    if(
BizzInfo[id][bOwned] == 1)
                    {
                        
format(strisizeof(stri), "Proprietar Afacere: %s\nExtortion: %s\nEntering Fee: %dLei\n",BizzInfo[id][bOwner], BizzInfo[id][bExtortion], BizzInfo[id][bEntranceCost]);
                        
Create3DTextLabel(stri,0xFF0000FF,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ],5001);
                        
CreateDynamicPickup(12741BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ]);
                    }
                }
                else if(
update == 2)
                {
                    if(
SBizzInfo[id][sbOwned] == 0)
                    {
                        
format(strisizeof(stri), "Vanzare S-Afacere\nPret: %dLei\nLevel Necesar: %d\n",SBizzInfo[id][sbBuyPrice], SBizzInfo[id][sbLevelNeeded]);
                        
sbizsale Create3DTextLabel(stri,0x00808000,SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ],3001);
                        
CreateDynamicPickup(12741SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ]);
                    }
                    if(
SBizzInfo[id][sbOwned] == 1)
                    {
                        
//format(stri, sizeof(stri), "Proprietar S-Afacere: %s \n Extortion: %s \n Entering Fee: %dLei. \n ",SBizzInfo[id][sbOwner], SBizzInfo[id][sbExtortion], BizzInfo[id][bEntranceCost]);
                        //Create3DTextLabel(stri,0xFF0000FF,SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ],30, 0, 1);
                        
AddStaticPickup(12741SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ]);
                        
pickups++;
                    }
                    }
                    return 
1;
                    } 



Re: TextDraw Problem - Threshold - 30.12.2012

Try changing it to:
pawn Код:
Delete3DTextLabel(housesale[id]);
??

That's my guess at what you're trying to do.


Re: TextDraw Problem - Akcent_Voltaj - 30.12.2012

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
Try changing it to:
pawn Код:
Delete3DTextLabel(housesale[id]);
??

That's my guess at what you're trying to do.
yeah i reply at my first post i get errors..


Re: TextDraw Problem - Akcent_Voltaj - 30.12.2012

anyone help?


Re: TextDraw Problem - Akcent_Voltaj - 30.12.2012

please help!!!+REP!


Re: TextDraw Problem - vMapper - 30.12.2012

Quote:
Originally Posted by Akcent_Voltaj
Посмотреть сообщение
what is wrong in this??

Delete3DTextLabel(housesale[id]);

errors:

PHP код:
error 028invalid subscript (not an array or too many subscripts): "housesale"
warning 215expression has no effect
error 001
expected token";"but found "]"
error 029invalid expressionassumed zero
fatal error 107
too many error messages on one line 
Re-post the errors with the whole ones, like

Blah/Blah/Blah this line has some error, basically copy-paste the whole error script


Re: TextDraw Problem - Akcent_Voltaj - 30.12.2012

i did up post

//Delete3DTextLabel(housesale,id);
error