TextDraw Problem
#1

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

whats the error?
Reply
#3

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

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;
                    } 
Reply
#5

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

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

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

anyone help?
Reply
#8

please help!!!+REP!
Reply
#9

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

i did up post

//Delete3DTextLabel(housesale,id);
error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)