SA-MP Forums Archive
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: Problem (/showthread.php?tid=513924)



Problem - Akcent_Voltaj - 18.05.2014

if you really need rep i will give it to you.. how can i make this work


PHP код:
if( listitem == 19 )
                    {
                    if(
TCCTicketOffer[playerid] < 999//muii
                    
{
                    if(
IsPlayerConnected(TCCTicketOffer[playerid]))
                    {
                    if (
ProxDetectorS(5.0playeridTCCTicketOffer[playerid]))
                    {
                    if(
GetPlayerCash(playerid) < TCCTicketMoney[playerid])
                    {
                        
SendClientMessage(playeridCOLOR_GREY"* Nu ai bani pentru a scoate vehicolul! !");
                        return 
1;
                    }
                    new 
bouse PlayerInfo[playerid][pPbiskey];
                    
OnPropTextdrawUpdate(3bouse-100); // i want this too work!!
                    
GetPlayerName(TCCTicketOffer[playerid], giveplayersizeof(giveplayer));
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "* Ai platit amenda in valoare de %dLei membrului Tcc %s."TCCTicketMoney[playerid], giveplayer);
                    
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                    
format(stringsizeof(string), "* %s a platit amenda de %dLei."sendernameTCCTicketMoney[playerid]);
                    
SendClientMessage(TCCTicketOffer[playerid], COLOR_LIGHTBLUEstring);
                    
GivePlayerCash(playerid, - TCCTicketMoney[playerid]);
                    
OnPropUpdate();
                    
OnPlayerUpdateEx(playerid);
                    
SBizzInfo[9][sbTill] += TCCTicketMoney[playerid];
                    
TCCTicketOffer[playerid] = 999;
                    
TCCTicketMoney[playerid] = 0;
                    return 
1;
                    }
                    else
                    {
                    
SendClientMessage(playeridCOLOR_GREY"   The Officer is not near you !");
                    return 
1;
                    }
                    }
                    }
                    else
                    {
                    
SendClientMessage(playeridCOLOR_GREY"   No-one offered you a Ticket !");
                    return 
1;
                    }
                    } 



Re: Problem - gekas - 18.05.2014

give mee the errors


I think is this


PHP код:
if( listitem == 19 
                    { 
                    if(
TCCTicketOffer[playerid] < 999//muii 
                    

                    if(
IsPlayerConnected(TCCTicketOffer[playerid])) 
                    { 
                    if (
ProxDetectorS(5.0playeridTCCTicketOffer[playerid])) 
                    { 
                    if(
GetPlayerCash(playerid) < TCCTicketMoney[playerid]) 
                    { 
                        
SendClientMessage(playeridCOLOR_GREY"* Nu ai bani pentru a scoate vehicolul! !"); 
                    } 
                    new 
bouse PlayerInfo[playerid][pPbiskey]; 
                    
OnPropTextdrawUpdate(3bouse-100); // i want this too work!! 
                    
GetPlayerName(TCCTicketOffer[playerid], giveplayersizeof(giveplayer)); 
                    
GetPlayerName(playeridsendernamesizeof(sendername)); 
                    
format(stringsizeof(string), "* Ai platit amenda in valoare de %dLei membrului Tcc %s."TCCTicketMoney[playerid], giveplayer); 
                    
SendClientMessage(playeridCOLOR_LIGHTBLUEstring); 
                    
format(stringsizeof(string), "* %s a platit amenda de %dLei."sendernameTCCTicketMoney[playerid]); 
                    
SendClientMessage(TCCTicketOffer[playerid], COLOR_LIGHTBLUEstring); 
                    
GivePlayerCash(playerid, - TCCTicketMoney[playerid]); 
                    
OnPropUpdate(); 
                    
OnPlayerUpdateEx(playerid); 
                    
SBizzInfo[9][sbTill] += TCCTicketMoney[playerid]; 
                    
TCCTicketOffer[playerid] = 999
                    
TCCTicketMoney[playerid] = 0
                    } 
                    else 
                    { 
                    
SendClientMessage(playeridCOLOR_GREY"   The Officer is not near you !"); 
                    }
                    else 
                    { 
                    
SendClientMessage(playeridCOLOR_GREY"   No-one offered you a Ticket !"); 
                    } 



Re: Problem - Akcent_Voltaj - 18.05.2014

no errors its just the OnPropTextdrawUpdate(3, bouse-100); it dosent work..


Re: Problem - gekas - 18.05.2014

PHP код:
OnPropTextdrawUpdate(3, -100); 
Try this


Re: Problem - Akcent_Voltaj - 18.05.2014

no work..


Re: Problem - gekas - 18.05.2014

PHP код:
OnPropTextdrawUpdate(updateid
try this i thing will work try anything what is wrong ?

Gimme more informaions about this


Re: Problem - Akcent_Voltaj - 18.05.2014

its dosent update the thing..


Re: Problem - Akcent_Voltaj - 18.05.2014

bump


Re: Problem - gekas - 18.05.2014

Give mee more information for dhat

What you need to do ?

With dat i can give any next to work


Re: Problem - Akcent_Voltaj - 18.05.2014

it dosent update textdraw.. i think i need biz but i tried all ways.. you try