Textdraw while in class selection?
#3

So I was looking between textdraw and "GameTextForPlayer"
and "GameTextForPlayer" looks ALOT shorter than TextDraw
(Besides isn't Textdraw mainly for showing server name/forums
at the bottom of the screen?)

SO, for "GameTextForPlayer" on the wiki it said

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new string[50];
    format(string, sizeof(string), "You entered vehicle: %i", vehicleid);
    GameTextForPlayer(playerid, string, 3000, 4);
    return 1;
}
And what I don't understand is the "new string[50];" .. what's that mean? (Link/Discription, anything really.)
And whats that "%i"?


If I was going to make this for Class Selection, would I just do the same as textdraw
to tell it to dissipear if its on the wrong ID? Or would I not need to because of the timer?

And where would I set it to appear on the ID?
-- How would I make "Survivor" only appear on CJ?
--and make "Survivor 2" only appear on ID 170?


Because If I don't have to make it not appear for the wrong ID, and just have it so it when you go over CJ (or ID 170) it would stay up for 5 seconds, or go away after you switch to ID 170(or CJ).


Thanks ^^
Reply


Messages In This Thread
Textdraw while in class selection? - by BJaxx - 11.11.2010, 23:10
Re: Textdraw while in class selection? - by Las Venturas CNR - 11.11.2010, 23:38
Re: Textdraw while in class selection? - by BJaxx - 12.11.2010, 00:34
Re: Textdraw while in class selection? - by Las Venturas CNR - 12.11.2010, 01:53
Re: Textdraw while in class selection? - by BJaxx - 12.11.2010, 03:06

Forum Jump:


Users browsing this thread: 2 Guest(s)