24.01.2012, 01:24
Im developing a mission script for my server, and i cant even compile the darn thing because it crashes.
Heres the script (yes i stole sample mission from the truckign mission include)
What about this is fucking up my pawno?
Like i said, its being developed, no where near done.
Heres the script (yes i stole sample mission from the truckign mission include)
pawn Код:
#include <a_samp>
enum PlayerMissionInfo
{
Pay,
Checkpoint,
OnCheckpoint,
Float:UnloadPos[3],
TrailerVehId,
VehicleId
}
new PlayerMissionData[MAX_PLAYERS][PlayerMissionInfo];
enum MissionInfo
{
Info[200],
Pay,
Type,
Float:LoadPos[3],
Float:UnloadPos[3]
}
new MissionData[][MissionInfo] =
{
{"Deliver Holy Water from LVA Freight to LVA Church", 1, 1701.9475, 940.5465, 10.8203, 1496.2524, 772.1427, 10.8203},
{"Deliver Junk Car Parts from LVA Freight Depot to Shody Ottos", 1701.9475, 940.5465, 10.8203, 1727.6351, 1812.1750, 10.8203}
};
new Working[MAX_PLAYERS], String[500];
Stock StartWorking(playerid)
{
if (Working[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, "Your already on a route, so we cannot give you a new one!");
new ID = random(sizeof(MissionData));
new VehModel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(VehModel == 403 || VehModel == 514 || VehModel == 515)
{
if(MissionData[ID][Type] != 1) return StartWorking(playerid);
}
Working[playerid] = 1;
PlayerMissionData[playerid][Pay] = MissionData[ID][Pay];
return 1;
}
Like i said, its being developed, no where near done.