G:\The new server!!!\pawno\include\PPC_DefLoads.inc(2) : error 001: expected token: ";", but found "enum"
// Setup a custom type that holds all data about a load
enum TLoad
{
LoadName[50], // The name of the load
bool:Mafia, // Holds "true" if this load is wanted by the mafia
Float:PayPerUnit, // Holds the price for every meter to haul this type of load (this gets multiplied by the distance to calculate the payment)
PCV_Required, // This holds the vehicle-type the player needs to use this load (and automatically the player's class)
FromLocations[30], // This array holds all loading-points for this load
ToLocations[30] // This array holds all unloading-points for this load
}
enum TLoad
// Setup a custom type that holds all data about a load
enum {TLoad
LoadName[50], // The name of the load
bool:Mafia, // Holds "true" if this load is wanted by the mafia
Float:PayPerUnit, // Holds the price for every meter to haul this type of load (this gets multiplied by the distance to calculate the payment)
PCV_Required, // This holds the vehicle-type the player needs to use this load (and automatically the player's class)
FromLocations[30], // This array holds all loading-points for this load
ToLocations[30] // This array holds all unloading-points for this load
}
enum TLoad
{
LoadName[50], // The name of the load
bool:Mafia, // Holds "true" if this load is wanted by the mafia
Float:PayPerUnit, // Holds the price for every meter to haul this type of load (this gets multiplied by the distance to calculate the payment)
PCV_Required, // This holds the vehicle-type the player needs to use this load (and automatically the player's class)
FromLocations[30], // This array holds all loading-points for this load
ToLocations[30] // This array holds all unloading-points for this load
};
enum TLoad
{
LoadName[50], // The name of the load
bool:Mafia, // Holds "true" if this load is wanted by the mafia
Float:PayPerUnit, // Holds the price for every meter to haul this type of load (this gets multiplied by the distance to calculate the payment)
PCV_Required, // This holds the vehicle-type the player needs to use this load (and automatically the player's class)
FromLocations[30], // This array holds all loading-points for this load
ToLocations[30] // This array holds all unloading-points for this load
}
new TheLoad[MAX_PLAYERS][TLoad];
|
Try this one:
Код:
enum TLoad
{
LoadName[50], // The name of the load
bool:Mafia, // Holds "true" if this load is wanted by the mafia
Float:PayPerUnit, // Holds the price for every meter to haul this type of load (this gets multiplied by the distance to calculate the payment)
PCV_Required, // This holds the vehicle-type the player needs to use this load (and automatically the player's class)
FromLocations[30], // This array holds all loading-points for this load
ToLocations[30] // This array holds all unloading-points for this load
};
|
enum TLoad
{
LoadName[50], // The name of the load
bool:Mafia, // Holds "true" if this load is wanted by the mafia
Float:PayPerUnit, // Holds the price for every meter to haul this type of load (this gets multiplied by the distance to calculate the payment)
PCV_Required, // This holds the vehicle-type the player needs to use this load (and automatically the player's class)
FromLocations[30], // This array holds all loading-points for this load
ToLocations[30], // This array holds all unloading-points for this load
};
enum Tload
enum Tload
|
If you get that error, then it means that the mistake is ABOVE the referenced line, not below it.
|