GametextforPlayer:
#1

Hi guys I make Gametextforplayer in Gamemodeint But I can't see it...
My codes I made
pawn Код:
for(new i = 1;i < MAX_PLAYERS;i++)
    {
        new string[256];
        for(new l = 0;l <  sizeof(LoadInfo);l++)
            {
            CreatePickup(1239, 1, LoadInfo[l][getposX], LoadInfo[l][getposY], LoadInfo[l][getposZ],0);
            if(IsPlayerInRangeOfPoint(i,10,LoadInfo[l][getposX], LoadInfo[l][getposY], LoadInfo[l][getposZ]))
            {
                 format(string, sizeof(string), "~r~Name: %s~n~~w~Destination: %s~n~Price: %d",LoadInfo[l][Name],LoadInfo[l][Destination],LoadInfo[l][Price] );
                GameTextForPlayer(i, string, 3000, 2);
            }
          }
        }
pawn Код:
CreatePickup(1239, 1, LoadInfo[l][getposX], LoadInfo[l][getposY], LoadInfo[l][getposZ],0);
I can see pickup but gametext can't??
Reply
#2

WTF? Why are you putting in a loop for something you're only using for one player?
Reply
#3

OOps...Tell me fix and check
Reply
#4

I'm on my PS3 atm, I won't be able to, purely because, I wanna pwn some people on Black Ops
Reply
#5

hm
pawn Код:
new yourpickup;
OnPlayerPickupPickup(...)
if(Pickupid = yourpickup) {
        new string[256];
        //more stuff here
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)