3d/2d text above icons? or anywhere
#7

You have 1 extra closing brace in OnPlayerText. The garage[x] etc. were just examples. I'm guessing you're using an array for the garage system, like GarageInfo[garageid][PosX],GarageInfo[garageid][Owner] etc. When loading the garages, that's where you should use the Create3DTextLabel.

Here's an example, I hope you'll understand what I mean by it:

pawn Код:
stock LoadGarages()
{
    /*

        This part loads the imaginable garages

    */


    // Now that we have our garages loaded, lets place the 3DTextLabel at them, to show the owner
    new string[24];
    for(new i = 0; i < sizeof(GarageInfo); i++)
    {
        format(string,sizeof(string),"%s",GarageInfo[i][Owner]);
        Create3DTextLabel(string,0x008080FF,GarageInfo[i][PosX],GarageInfo[i][PosY],GarageInfo[i][PosZ],40.0,0);
    }
}
Here's the fix for OnPlayerChat:

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(AccountInfo[playerid][Mute] == 1)
        return SendClientMessage(playerid, RED, "You are muted! You cannot talk.");
    return 1;
}

Would be great if you could show me the way you load the garages.
Reply


Messages In This Thread
3d/2d text above icons? or anywhere - by seifo - 22.07.2010, 08:49
Re: 3d/2d text above icons? or anywhere - by Billy_Macan - 22.07.2010, 08:51
Re: 3d/2d text above icons? or anywhere - by ettans - 22.07.2010, 09:02
Re: 3d/2d text above icons? or anywhere - by seifo - 22.07.2010, 09:16
Re: 3d/2d text above icons? or anywhere - by seifo - 22.07.2010, 09:45
Re: 3d/2d text above icons? or anywhere - by LeNy - 22.07.2010, 09:55
Re: 3d/2d text above icons? or anywhere - by ettans - 22.07.2010, 09:58
Re: 3d/2d text above icons? or anywhere - by seifo - 22.07.2010, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)