08.10.2011, 21:15
Sequinte eu puis isso ai mais deu isso
Filter:
erro:
Filter:
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define ONIBUS 0
new Profissao[MAX_PLAYERS];
#if defined FILTERSCRIPT
#if !defined MAX_PLAYERS
#define MAX_PLAYERS 100
#endif
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
CreateObject(1257, 2399.094238, -1739.404785, 13.826067, 0.000000, 0.000000, 270.000000); //object (bustopm) (1)
CreateObject(1257, 2238.190674, -1739.389282, 13.826067, 0.000000, 0.000000, 270.000000); //object (bustopm) (2)
CreateObject(1257, 2438.115723, -1630.133057, 27.868876, 0.000000, 0.000000, 0.000000); //object (bustopm) (3)
CreateObject(1257, 2423.871826, -1630.517212, 27.842348, 0.000000, 0.000000, 180.000000); //object (bustopm) (4)
CreateObject(1257, 2437.551025, -1520.149902, 24.279865, 0.000000, 0.000000, 0.000000); //object (bustopm) (5)
CreateObject(1257, 2557.361572, -1478.219360, 24.297842, 0.000000, 0.000000, 0.000000); //object (bustopm) (6)
CreateObject(1257, 2577.884766, -1342.227051, 37.733032, 10.000000, 0.000000, 356.000000); //object (bustopm) (7)
CreateObject(1257, 2604.402100, -1263.628662, 47.896114, 0.000000, 0.000000, 266.000000); //object (bustopm) (8)
CreateObject(1257, 2677.144043, -1263.598511, 53.829578, 10.000000, 0.000000, 268.000000); //object (bustopm) (9)
CreateObject(1257, 2744.692139, -1226.459351, 63.785652, 10.000000, 0.000000, 0.000000); //object (bustopm) (10)
CreateObject(1257, 2678.759766, -1063.962891, 69.576065, 0.000000, 0.000000, 90.000000); //object (bustopm) (11)
CreateObject(1257, 2755.496826, -1056.116699, 46.880562, 346.000000, 0.000000, 270.000000); //object (bustopm) (12)
CreateObject(1257, 2831.071289, -1113.337891, 24.848112, 0.000000, 0.000000, 177.994995); //object (bustopm) (13)
CreateObject(1257, 2862.616943, -1355.993652, 11.253120, 0.000000, 0.000000, 190.000000); //object (bustopm) (14)
CreateObject(1257, 2817.834473, -1632.303589, 11.279493, 0.000000, 0.000000, 176.000000); //object (bustopm) (15)
CreateObject(1257, 2663.436279, -1650.581177, 11.146379, 0.000000, 0.000000, 90.000000); //object (bustopm) (16)
CreateObject(1257, 2901.045654, -887.941711, 11.326067, 0.000000, 0.000000, 0.000000); //object (bustopm) (18)
CreateObject(1257, 2880.596680, -892.855652, 11.154192, 0.000000, 0.000000, 0.000000); //object (bustopm) (19)
CreateObject(18449, 2953.214355, -651.011353, 8.561399, 0.000000, 0.000000, 0.000000); //object (cs_roadbridge01) (1)
CreateObject(18449, 2953.071045, -667.309937, 8.561399, 0.000000, 0.000000, 0.000000); //object (cs_roadbridge01) (2)
CreateObject(18449, 3032.524170, -667.332214, 8.500000, 0.000000, 0.000000, 0.000000); //object (cs_roadbridge01) (3)
CreateObject(18449, 3032.552246, -651.265320, 8.561399, 0.000000, 0.000000, 0.000000); //object (cs_roadbridge01) (4)
CreateObject(5837, 2909.454102, -659.270020, 10.967963, 358.000000, 0.000000, 0.000000); //object (ci_guardhouse1) (1)
CreateObject(2237, 3064.191895, -654.245361, 0.000000, 0.000000, 0.000000, 0.000000); //object (CJ_SHOVEL2) (1)
CreateObject(11083, 3149.281982, -671.778503, 12.250000, 0.000000, 0.000000, 92.000000); //object (drivingschlgnd_SFS) (1)
CreateObject(7191, 3226.824951, -668.181213, 11.216866, 0.000000, 0.000000, 92.000000); //object (vegasNnewfence2b) (1)
CreateObject(4100, 3205.956543, -634.518921, 10.943857, 0.000000, 0.000000, 47.999268); //object (meshfence1_LAn) (3)
CreateObject(980, 3205.463623, -649.410400, 12.015579, 0.000000, 0.000000, 88.000000); //object (airportgatepfechado) (1)
CreateObject(980, 3205.881836, -637.947327, 12.022659, 0.000000, 0.000000, 87.994995); //object (airportgate paberto) (2)
CreateObject(4100, 3205.168701, -661.446106, 10.943857, 0.000000, 0.000000, 47.999268); //object (meshfence1_LAn) (4)
CreateObject(4100, 3204.645996, -675.181458, 10.943857, 0.000000, 0.000000, 47.999268); //object (meshfence1_LAn) (5)
CreateObject(4100, 3203.870117, -703.854309, 10.943857, 0.000000, 0.000000, 49.999268); //object (meshfence1_LAn) (7)
CreateObject(980, 3204.106445, -691.852844, 12.015579, 0.000000, 0.000000, 87.994995); //object (airportgate) (1)
CreateObject(980, 3204.106445, -691.852539, 12.015579, 0.000000, 0.000000, 87.994995); //object (airportgate pfechado M) (2)
CreateObject(980, 3204.443115, -680.212097, 12.022659, 0.000000, 0.000000, 87.994995); //object (airportgate paberto MM) (4)
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if(Profissao[playerid] == ONIBUS) // Se A Profissгo Dele For Taxista
SetPlayerPos(playerid, 1367.0944,-1633.3569,13.3828); // Seta Ele Para Um Certo Lugar, Coordenada X Y Z
return true;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/emprego", true) == 0)
{
if(Profissao[playerid] == ONIBUS)
{
SendClientMessage(playerid,0x80FF00AA,"Ola parabens voce й motorista de onibus.");
}
else
{
SendClientMessage(playerid,0x80FF00AA,"Vocк nгo й motorista de onibus e nгo pode usar este comando");
}
return 1;
}
if(!strcmp(cmdtext, "/pegaremprego", true))
if(IsPlayerInRangeOfPoint(playerid,5.0,2906.1350,-660.9215,11.0046,322.8840);
{
Profissao[playerid] = ONIBUS;
SendClientMessage(playerid, -1, "Voce pegou o emprego Motorista de Onibus");
return 1;
}
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
PHP код:
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(40) : warning 217: loose indentation
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(74) : warning 217: loose indentation
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(139) : warning 217: loose indentation
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(142) : warning 202: number of arguments does not match definition
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(142) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(142) : error 036: empty statement
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(143) : warning 217: loose indentation
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(148) : warning 225: unreachable code
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\org.pwn(148) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.