15.10.2010, 20:04
Hi, i was makeing a textdraw to display some text for each class at OnPlayerRequestClass, but for some reason it's not showing up at all. Tho textdraws isn't my strongest side either, but i made em before.
Anyone see the problem?
pawn Код:
OnGameModeInnit()
{
RequestSpawn = TextDrawCreate(300.000000,250.000000," ");
TextDrawFont(RequestSpawn, 3);
TextDrawTextSize(RequestSpawn,3,3);
TextDrawColor(RequestSpawn,0x33AA33AA);
}
pawn Код:
OnPlayerRequestClass()
{
new Sstring[40];
switch(5)
{
case 0:
{
if(team1 != 2)
{
format(Sstring,sizeof(Sstring),"Class 1");
TextDrawSetString(RequestSpawn,Sstring);
TextDrawColor(RequestSpawn,0x33AA33AA);
}
else
{
format(Sstring,sizeof(Sstring),"This class is full");
TextDrawSetString(RequestSpawn,Sstring);
TextDrawColor(RequestSpawn,0x33AA33AA);
}
}
// And so on..
pawn Код:
OnPlayerConnect()
{
TextDrawShowForPlayer(playerid,RequestSpawn);
}
![Smiley](images/smilies/smile.png)