Blank line in chatbox
#1

Ok so I get a blank line or like a space in the chatbox with this code, and I don't know why (it could also be what runs above it if this code is fine),

pawn Код:
public StartingTheVehicle(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new RandomStart;
            new string[128];
            new sendername[MAX_PLAYER_NAME];
            RandomStart = random(4);
            switch(RandomStart)
            {
                case 0,1,2,3:
                {
                    engineOn[GetPlayerVehicleID(playerid)] = true;
                    TogglePlayerControllable(playerid, true);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* Vehicle's engine starts (( %s )).", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    gEngine[playerid] = 1;
                }
Its like this:
Код:
Stranger enters his vehicle.
Stranger reaches for a key and begins to insert it in the ignition.

"* Vehicle's engine starts (( Stranger)).
Anyone see a problem?
Reply


Messages In This Thread
Blank line in chatbox - by jakejohnsonusa - 20.03.2013, 20:26
Re: Blank line in chatbox - by Joshman543 - 20.03.2013, 20:31
Re: Blank line in chatbox - by jakejohnsonusa - 20.03.2013, 20:39
Re: Blank line in chatbox - by Joshman543 - 20.03.2013, 21:37

Forum Jump:


Users browsing this thread: 3 Guest(s)