Smail Help :D +Rep
#1

Hello Guys
i Have Problems
My Choose With Numbers
its Working Fine But When i /Close i Done Close it i Write numbers i see it Working
What this bug and how to fix it to disable ?
PHP код:
CMD:show(playeridparams[])
{
    
Show(playerid);
    
ShowText[playerid] = 1;
    return 
1;
}
CMD:close(playeridparams[])
{
    
Hide(playerid);
    
ShowText[playerid] = 0;
    return 
1;

PHP код:
    if(text[0] == '1'// if he write 1 in chat
    
{
        if(
ShowSkyText[playerid] == 1// If Textdraws are open.
        
{
          
GivePlayerWeapon(playerid4646);
          
SetPlayerPos(playerid1686.9702,-1312.8329,872.7163);
        }
    }
    if(
text[0] == '2'// if he write 2 in chat
    
{
        if(
ShowSkyText[playerid] == 1)
        {
            
GivePlayerWeapon(playerid4646);
            
SetPlayerPos(playerid, -2112.7942,659.1328,875.6769);
        }
    }
    if(
text[0] == '3'// if he write 1 in chat
    
{
        if(
ShowSkyText[playerid] == 1// If Textdraws are open.
        
{
          
GivePlayerWeapon(playerid4646);
          
SetPlayerPos(playerid2343.6409,1521.8400,732.7235);
        }
    } 
why when i /close > And when i type numbers its work > Why ? how to fix
Reply
#2

try to change your cmds like this :
PHP код:
CMD:show(playeridparams[])
{
    
Show(playerid);
    
ShowSkyText[playerid] = 1;
    return 
1;
}
CMD:close(playeridparams[])
{
    
Hide(playerid);
    
ShowSkyText[playerid] = 0;
    return 
1;

Reply
#3

Quote:
Originally Posted by amirab
Посмотреть сообщение
try to change your cmds like this :
PHP код:
CMD:show(playeridparams[])
{
    
Show(playerid);
    
ShowSkyText[playerid] = 1;
    return 
1;
}
CMD:close(playeridparams[])
{
    
Hide(playerid);
    
ShowSkyText[playerid] = 0;
    return 
1;

what the new i dont see diffrent
Reply
#4

the diffrence is that you did ShowText[playerid] = 0 and he did ShowSkyText[playerid] = 0;
Reply
#5

Quote:
Originally Posted by Desha1
Посмотреть сообщение
what the new i dont see diffrent
as BroZeus said , the deference is in your vars
now see the title
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)