Text draw problem
#1

PHP код:
if(IsPlayerInDynamicCP(playeridammu1))
    {
        
HideMenu(playerid);
         
format(stringsizeof(string), "~n~~p~Weapons~n~~n~~y~1. ~w~9mm - ~g~$1000~n~~y~2. ~w~Desert Eagle - ~g~$2500~n~~y~3. ~w~Sawnoff - ~g~$3500~n~~y~4. ~w~Combat Shotgun - ~g~$4000~n~~y~5. ~w~Teco9 - ~g~$6000");
        
TextDrawSetString(ammuu1string);
        
TextDrawShowForPlayer(playeridammu);
         
TextDrawShowForPlayer(playeridammuu1);
         return 
1;
    }
    if(
IsPlayerInDynamicCP(playeridammu1))
    {
        
HideMenu(playerid);
         
format(stringsizeof(string), "~n~~n~~n~~n~~n~~n~6. ~w~MP5 - ~g~$8000~n~~y~7. ~w~AK47 - ~g~$95000~n~~y~8. ~w~M4 - ~g~$11000~n~~y~9. ~w~Sniper - ~g~$12500~n~~y~10. ~w~Armour - ~g~$1000");
        
TextDrawSetString(ammuu2string);
        
TextDrawShowForPlayer(playeridammuu);
         
TextDrawShowForPlayer(playeridammuu2);
         return 
1;
    } 
2nd texrdraw dnt working any idea what i did wrong?
Reply
#2

1st
put these under HideMenu(playerid);

pawn Код:
TextDrawShowForPlayer(playerid, ammu);
TextDrawShowForPlayer(playerid, ammuu1);
same to ammuu2

and tell me if it works

or wait copy this code and replace it

pawn Код:
if(IsPlayerInDynamicCP(playerid, ammu1))
{
    HideMenu(playerid);
    TextDrawShowForPlayer(playerid, ammu);
    TextDrawShowForPlayer(playerid, ammuu1);
    TextDrawShowForPlayer(playerid, ammuu2);
    format(string, sizeof(string), "~n~~p~Weapons~n~~n~~y~1. ~w~9mm - ~g~$1000~n~~y~2. ~w~Desert Eagle - ~g~$2500~n~~y~3. ~w~Sawnoff - ~g~$3500~n~~y~4. ~w~Combat Shotgun - ~g~$4000~n~~y~5. ~w~Teco9 - ~g~$6000");
    TextDrawSetString(ammuu1, string);

    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~6. ~w~MP5 - ~g~$8000~n~~y~7. ~w~AK47 - ~g~$95000~n~~y~8. ~w~M4 - ~g~$11000~n~~y~9. ~w~Sniper - ~g~$12500~n~~y~10. ~w~Armour - ~g~$1000");
    TextDrawSetString(ammuu2, string);
       
     return 1;
}
copy this code and replace with the code that you added in your topic
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)