Please HELP ME fix this errors =[
#1

Errors
Код:
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(99) : error 001: expected token: "-identifier-", but found "state"
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(100) : error 017: undefined symbol "If"
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(101) : error 017: undefined symbol "If"
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(101) : error 001: expected token: "-identifier-", but found "!="
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(105) : warning 225: unreachable code
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(111) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(118) : warning 209: function "OnPlayerCommandText" should return a value
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(118) : error 055: start of function body without function header
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(119) : error 010: invalid function or declaration
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(122) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(123) : error 010: invalid function or declaration
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(124) : error 010: invalid function or declaration
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(128) : error 010: invalid function or declaration
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(133) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(135) : error 010: invalid function or declaration
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(137) : error 010: invalid function or declaration
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(281) : warning 203: symbol is never used: "Nick"
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(39) : warning 204: symbol is assigned a value that is never used: "baze"
C:\Documents and Settings\Mufasa\Рабочий стол\ser\filterscripts\Untitled.pwn(37) : warning 204: symbol is assigned a value that is never used: "mainigais"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


14 Errors.
Script
Код:
#include <a_samp>
new baze;
new mainigais;

#define COLOR_Open 0x7CB10EDA
#define COLOR_Close 0x7C55D7EE
#define COLOR_Tele 0xC840AAFF

#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;
//--------Objekti
baze= CreateObject(11416, 977.590210, 2072.922363, 11.820015, 0.0000, 0.0000, 180.0000);
CreateObject(2632, 977.544006, 2070.883057, 14.741612, 90.2409, 359.1406, 90.8594);
CreateObject(2632, 977.532776, 2074.183838, 14.801730, 90.2409, 359.1406, 90.8594);
//-----Neuztveramie
//CreateObject(11416, 977.559937, 2072.914063, 7.652934, 0.0000, 0.0000, 180.0000); mana gadijuma bazes durvis/vala

}

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(cmdtext, "/bki", true) == 0)
{
  new state = GetPlayerState(playerid);
  If(IsPlayerInAnyVehicle(playerid))  {
  If(state != PLAYER_STATE_DRIVER) {
  SendClientMessage(playerid,0xFF3333AA,"Only Driver");
  return 1;
  }
  new vehicleid = GetPlayerVehicleID(playerid);
  LinkVehicleToInterior(vehicleid,0);
  SetVehiclePos(vehicleid, 987.9366,2117.4451,10.8203);
  SetVehicleZAngle(vehicleid,0);
  SendClientMessage(playerid,0xC840AAFF,"Kikiz Base");
  }
  else  {
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, 987.9366,2117.4451,10.8203);
  SendClientMessage(playerid,0xC840AAFF,"Kikiz Base");
  }
  return 1;
}
{
	if(strcmp("/kikic", cmdtext, true, 6) == 0)
{
  new Nick[MAX_PLAYER_NAME];
  GetPlayerName(playerid, Nick, sizeof(Nick));
  if(strfind(Nick, "Kikiz", true) != -1 || strfind(Nick, "Test", true) != -1) {
   if(mainigais == 0) {
     SendClientMessage(playerid, 0x7CB10EDA,"Baze ir atverta");
     MoveObject(baze, 977.559937, 2072.914063, 7.652934, 3); //vala
     mainigais = 1;
   } else if(mainigais == 1) {
     SendClientMessage(playerid, 0x7C55D7EE,"Baze ir aizverta");
     MoveObject(baze, 977.590210, 2072.922363, 11.820015, 3); //ciet
     mainigais = 0;

   }
  }
  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;
}
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
return 0;
}
Please help fix me this errors
Reply


Messages In This Thread
Please HELP ME fix this errors =[ - by endjuru - 04.06.2010, 22:44
Re: OnPlayerCommandText - by endjuru - 04.06.2010, 22:55
Re: OnPlayerCommandText - by endjuru - 05.06.2010, 06:33
Re: OnPlayerCommandText - by w00tNew - 05.06.2010, 06:40
Re: Please HELP ME fix this errors =[ - by endjuru - 05.06.2010, 07:09
Re: Please HELP ME fix this errors =[ - by [SsC11]MAVERIK - 05.06.2010, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)