20.03.2013, 20:26
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),
Its like this:
Anyone see a problem?
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;
}
Код:
Stranger enters his vehicle. Stranger reaches for a key and begins to insert it in the ignition. "* Vehicle's engine starts (( Stranger)).