/car Problem and random messages
#1

I need some help ,,,, i am using PPCTrucking , i finished editing , but when i get in game , some commands are not working such as the : /car /plane , all others are working properly ,, here i show you the warnings too , they may be problem .

Код:
I:\The new server!!!\gamemodes\PPC_Trucking.pwn(1099) : warning 217: loose indentation
I:\The new server!!!\gamemodes\PPC_Trucking.pwn(2518) : warning 203: symbol is never used: "ret_memcpy"
I:\The new server!!!\gamemodes\PPC_Trucking.pwn(2518) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
I have some problem with the random messages too , they doesent appear in game .

Here they are

pawn Код:
{
        RandomClientMessageToAll[playerid, green,"Visit /derby and get a trucking/busser license"];
        SetTimer("Timer_TimedMessages", 190000, true);
        return 1;
    }
    {
        RandomClientMessageToAll[playerid, green,"Want a house witch is not buyable ? No problem , contact with Private and he will make it buyable"];
        SetTimer("Timer_TimedMessages", 150000, true);
        return 1;
    }
    {
        RandomClientMessageToAll[playerid, green,"Want to have place on our Admin Staff ? What are you waiting for ? Go on http://www.trucking-international.tk and apply"];
        SetTimer("Timer_TimedMessages", 90000, true);
        return 1;
    }
    {
        RandomClientMessageToAll[playerid, green,"Created a company ? Want your own base for your company ?Map the base and pm it to Private on forum"];
        SetTimer("Timer_TimedMessages", 60000, true);
        return 1;
    }
Reply
#2

What the fuck is this? Unconditional blocks of code?
Reply
#3

If you can help me , then tell me , i am newbie scripter
Reply
#4

Hem, i think you must show /car and /plane code in here.
Reply
#5

pawn Код:
THIS IS THE CAR COMMAND

// Lets the player choose a car to spawn (in a split list which shows only 10 cars at a time)
COMMAND:car(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/car", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 1
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
                CarList_Create(playerid); // Create a list of cars (only the first 10 cars) and show the dialog so the player can choose a car
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}

THIS IS THE PLANE COMMAND

// Lets the player choose a plane to spawn (in a split list which shows only 10 planes at a time)
COMMAND:plane(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/plane", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 1
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
                PlaneList_Create(playerid); // Create a list of planes (only the first 10 planes) and show the dialog so the player can choose a plane
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}

This is the trailer command (not working too)

// Lets the player choose a trailer to spawn (in a split list which shows only 10 trailers at a time)
COMMAND:trailer(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/trailer", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 1
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
                TrailerList_Create(playerid); // Create a list of trailers (only the first 10 trailers) and show the dialog so the player can choose a trailer
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
Help me please , when i type the cmd , it doesent tell anything , it just dont open the list of cars
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)