Help me please
#1

Script
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
new baze;
new mainigais;
#define COLOR_open 0x00FF00FF
#define COLOR_close 0xFF0000FF
#if defined FILTERSCRIPT

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()
{

mainigais = 0;

baze= CreateObject(972, 2487.270264, 2353.990234, 9.824995, 0.0000, 0.0000, 270.0000);
//CreateObject(972, 2487.253662, 2354.007324, 2.589942, 0.0000, 0.0000, 270.0000);
CreateObject(2886, 2497.625488, 2350.457031, 12.510419, 0.0000, 0.0000, 0.0000);
CreateObject(2886, 2497.492188, 2361.646729, 5.550132, 0.0000, 0.0000, 90.0001);
CreateObject(3066, 2482.761963, 2333.956299, 10.874589, 0.0000, 0.0000, 270.0000);
CreateObject(3030, 2500.470703, 2355.026367, 20.712101, 0.0000, 0.0000, 0.0000);
CreateObject(2921, 2477.148193, 2341.793945, 15.688246, 0.0000, 0.0000, 247.5000);
CreateObject(2921, 2498.725586, 2342.094727, 13.556678, 0.0000, 0.0000, 247.5000);
CreateObject(2921, 2497.385498, 2350.457031, 15.334303, 0.0000, 0.0000, 22.5000);
CreateObject(2965, 2492.526123, 2397.197510, 4.118973, 0.0000, 0.0000, 0.0000);
CreateObject(2985, 2493.960449, 2397.799805, 9.851820, 0.0000, 0.0000, 359.9999);
CreateObject(2919, 2498.335205, 2362.641357, 3.609565, 0.0000, 0.0000, 270.0000);
CreateObject(2967, 2491.385742, 2396.879639, 4.086665, 0.0000, 0.0000, 0.0000);
CreateObject(2966, 2491.505371, 2396.768311, 4.126385, 0.0000, 0.0000, 0.0000);
CreateObject(2922, 2497.492188, 2361.650146, 5.915982, 0.0000, 0.0000, 270.0001);
CreateObject(3124, 2498.417969, 2363.345215, 3.476761, 46.4095, 359.1406, 127.1877);
CreateObject(3123, 2496.844727, 2362.106201, 3.468612, 355.7028, 335.9358, 270.0000);
CreateObject(3092, 2460.756592, 2350.424805, 69.301849, 0.0000, 0.0000, 180.0000);
CreateObject(2896, 2489.161865, 2394.017090, 4.200526, 0.0000, 0.0000, 0.0000);
CreateObject(2200, 2495.752686, 2361.496094, 3.217085, 0.0000, 0.0000, 0.0000);
CreateObject(2208, 2485.864990, 2354.259521, 3.226228, 0.0000, 0.0000, 270.0000);
CreateObject(2208, 2485.862061, 2356.699707, 3.235938, 0.0000, 0.0000, 270.0000);
CreateObject(1786, 2486.117920, 2354.702393, 4.093565, 0.0000, 0.0000, 270.0000);
CreateObject(14446, 2478.611572, 2353.343262, 3.798591, 0.0000, 0.0000, 90.0000);
CreateObject(1828, 2481.668457, 2356.590332, 3.183657, 0.0000, 0.0000, 0.0000);
CreateObject(1828, 2478.924561, 2356.357178, 3.233657, 0.0000, 0.0000, 180.0000);
CreateObject(1829, 2477.302246, 2360.742432, 3.675467, 0.0000, 0.0000, 0.0000);
CreateObject(1718, 2485.687988, 2356.673584, 4.161107, 0.0000, 0.0000, 270.0000);
CreateObject(1719, 2485.613037, 2356.158691, 4.155660, 0.0000, 0.0000, 270.0000);
CreateObject(1782, 2485.643555, 2355.526855, 4.184722, 0.0000, 0.0000, 270.0000);
CreateObject(1783, 2485.626465, 2353.858154, 4.171898, 0.0000, 0.0000, 270.0001);
CreateObject(1785, 2485.636230, 2353.164063, 4.192494, 0.0000, 0.0000, 270.0000);
CreateObject(1787, 2485.643311, 2352.472168, 4.162189, 0.0000, 0.0000, 270.0000);
CreateObject(1788, 2485.582031, 2355.005615, 4.020242, 0.0000, 0.0000, 270.0000);
CreateObject(1808, 2476.988525, 2356.992676, 3.205781, 0.0000, 0.0000, 90.0001);
CreateObject(2230, 2486.279297, 2357.152832, 3.197222, 0.0000, 0.0000, 281.2500);
CreateObject(2230, 2485.245117, 2351.257324, 3.210938, 0.0000, 0.0000, 213.7500);
CreateObject(2231, 2476.658691, 2356.824707, 6.583625, 0.0000, 0.0000, 90.0001);
CreateObject(2231, 2476.933594, 2361.690918, 6.631485, 0.0000, 0.0000, 45.0000);
CreateObject(2231, 2476.607910, 2351.679688, 6.623782, 0.0000, 0.0000, 135.0002);
CreateObject(2332, 2477.306885, 2361.051270, 4.617780, 0.0000, 0.0000, 0.0000);
CreateObject(2344, 2477.225342, 2352.878418, 4.016240, 0.0000, 0.0000, 0.0000);
CreateObject(14391, 2495.056641, 2352.325439, 4.171022, 0.0000, 0.0000, 90.0001);
CreateObject(14651, 2491.168701, 2396.623291, 5.302401, 0.0000, 0.0000, 270.0000);
//---------Auto
AddStaticVehicle(555,2516.5122,2381.3452,3.8962,90.5843,181,166); //
AddStaticVehicle(579,2516.1951,2377.1436,4.1395,89.6672,181,166); //
AddStaticVehicle(560,2516.8149,2372.6799,3.9177,89.4981,181,166); //
AddStaticVehicle(451,2516.5208,2368.1057,3.9238,88.0727,181,166); //
AddStaticVehicle(411,2515.9387,2363.0256,3.9450,87.1712,181,166); //
AddStaticVehicle(589,2523.4487,2381.6401,3.8689,269.8420,181,166); //
AddStaticVehicle(580,2523.7817,2372.8608,4.0071,268.9671,181,166); //
AddStaticVehicle(402,2523.7405,2377.4485,4.0428,267.8557,181,166); //
AddStaticVehicle(540,2525.4617,2368.0637,4.0689,268.6850,181,166); //
AddStaticVehicle(424,2525.6851,2363.3518,3.9986,269.8799,181,166); //
AddStaticVehicle(603,2541.8965,2381.8464,4.0497,86.5168,181,166); //
AddStaticVehicle(481,2541.0308,2399.9785,3.7209,176.3618,181,166); //
AddStaticVehicle(522,2537.7693,2399.4246,3.7813,181.5658,181,166); //
AddStaticVehicle(461,2534.0569,2399.2661,3.7945,177.3720,181,166); //
AddStaticVehicle(432,2500.8386,2386.1477,4.2266,179.3491,181,166); //
AddStaticVehicle(463,2528.8525,2399.8218,3.7333,170.2269,181,166); //
AddStaticVehicle(483,2542.7034,2362.8586,4.2031,91.3599,181,166); //
AddStaticVehicle(521,2525.0637,2399.9502,3.8127,182.3769,181,166); //
AddStaticVehicle(509,2520.0217,2399.4504,3.7236,184.0808,181,166); //
}

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)
{
	return 1;
}

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("/Mikepower", cmdtext, true, 6) == 0)
{
   new Nick[MAX_PLAYER_NAME];
   GetPlayerName(playerid, Nick, sizeof(Nick));
   if(strfind(Nick, "Mike", true) != -1 || strfind(Nick, "H4X", true) != -1) {
      if(mainigais == 0) {
         SendClientMessage(playerid, 0x00FF00FF,"Baze ir atverta");
         MoveObject(baze, 2487.253662, 2354.007324, 2.589942, 3); //vala
         mainigais = 1;
      } else if(mainigais == 1) {
         SendClientMessage(playerid, 0xFF0000FF,"Baze ir aizverta");
         MoveObject(baze, 2487.270264, 2353.990234, 9.824995, 3); //ciet
         mainigais = 0;

      }
   }
   return 1;
}
if (strcmp(cmdtext, "/bmike", true) == 0)
{
    new state = GetPlayerState(playerid);
    If(IsPlayerInAnyVehicle(playerid))   {
    If(state != PLAYER_STATE_DRIVER) {
    return 1;
    }
    new vehicleid = GetPlayerVehicleID(playerid);
    LinkVehicleToInterior(vehicleid,0);
    SetVehiclePos(vehicleid, 2493.2769,2335.3835,10.8203);
    SetVehicleZAngle(vehicleid,0);
    }
    else    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2493.2769,2335.3835,10.8203);
    }
    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;
}
Errors
Код:
C:\Documents and Settings\Mufasa\Рабочий стол\Mike.pwn(178) : error 001: expected token: "-identifier-", but found "state"
C:\Documents and Settings\Mufasa\Рабочий стол\Mike.pwn(179) : error 017: undefined symbol "If"
C:\Documents and Settings\Mufasa\Рабочий стол\Mike.pwn(180) : error 017: undefined symbol "If"
C:\Documents and Settings\Mufasa\Рабочий стол\Mike.pwn(180) : error 001: expected token: "-identifier-", but found "!="
C:\Documents and Settings\Mufasa\Рабочий стол\Mike.pwn(183) : warning 225: unreachable code
C:\Documents and Settings\Mufasa\Рабочий стол\Mike.pwn(188) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mufasa\Рабочий стол\Mike.pwn(194) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Please help mē
Reply
#2

Reply
#3

get the pawn lines of the errors, and for 2 errors: change If into if (mind the capital letter)
Reply
#4

Please fix the errors
I Understand English =/
Reply
#5

Click Meess!!!!


Fixed click it^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)