foh wrote:Ja tu gribi, lai kāds tev palīdz, tad ieliec skriptu...
#include
new baze;
new mainigais;
#include
#include
#define COLOR_RED 0xAA3333AA
//---------------------------------------------------------
main()
{
print("\n----------------------------------");
print(" Shoooooooooooooooooooooooooooooter");
print("----------------------------------\n");
}
//---------------------------------------------------------
public OnGameModeInit()
mainigais=0
baze = CreateObject(972, 1919.369263, -1301.205688, 52.224586, 0.0000, 0.0000, 270.0000);
{
new count;
new id;
SetGameModeText("Latviesu Shooter mode");
ShowNameTags(1);
ShowPlayerMarkers(1);
id = 47;
for(count = 0; count < 15; count++) {
AddPlayerClass(id,1545.5275,-1370.0961,329.4535,7.9780,0,0,0,0,0,0); // playerspawn
id++;
}
AddPlayerClass(id,1969.9589,-1185.5995,2000.0,90.0527,0,0,0,0,0,0); // pondspawn
AddStaticVehicle(487,1544.3810,-1354.1403,329.6510,0.9474,54,29); // heli1
AddStaticVehicle(487,1668.1875,-1267.6479,233.5519,80.6809,3,29); // heli2
AddStaticVehicle(487,1423.8759,-1189.4307,195.2232,272.4731,3,29); // heli
AddStaticVehicle(487,1427.8669,-1206.7137,195.2205,253.2966,3,29); // heli
AddStaticVehicle(487,1514.6334,-1067.3450,181.3798,269.2993,3,29); // heli
AddStaticVehicle(487,1532.8845,-1074.3094,181.3804,271.0264,3,29); // heli
AddStaticVehicle(487,1667.1321,-1222.7820,233.5480,288.6899,3,29); // heli
AddStaticVehicle(487,1560.2428,-1358.4150,329.6322,89.3433,3,29); // heli
AddStaticVehicle(487,1654.5442,-1637.0603,83.9570,201.0777,3,29); // heli
AddStaticPickup(371, 15, 1545.5070,-1225.3750,261.5938);
AddStaticPickup(371, 15, 1440.8297,-1227.1548,187.1926);
AddStaticPickup(371, 15, 1498.3612,-1282.6539,113.7795);
AddStaticPickup(371, 15, 1552.8856,-1264.9105,277.8750);
AddStaticPickup(371, 15, 1548.4478,-1268.6362,261.5938);
AddStaticPickup(371, 15, 1544.6133,-1272.7666,250.6563);
AddStaticPickup(371, 15, 1656.8127,-1249.7767,233.3750);
AddStaticPickup(371, 15, 1656.8175,-1274.2491,200.5234);
AddStaticPickup(371, 15, 1661.2855,-1644.0159,87.3735);
return 1;
}
//---------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~Helloo..

!",5000,5);
return 1;
}
//---------------------------------------------------------
SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,1545.5275,-1370.0961,329.4535);
SetPlayerCameraPos(playerid,1545.5275,-1365.0961,329.4535);
SetPlayerCameraLookAt(playerid,1545.5275,-1370.0961,329.4535);
}
//---------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
printf("Classid: %d", classid);
switch (classid) {
case 0..14:
{
GameTextForPlayer(playerid, "Celtne", 1000, 3);
}
case 15:
{
GameTextForPlayer(playerid, "Kritiens", 1000, 3);
}
}
return 1;
}
//---------------------------------------------------------
public OnPlayerSpawn(playerid)
{
GameTextForPlayer(playerid,"~r~Lido ka putns",3000,5);
return 1;
}
//---------------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
new name[MAX_PLAYER_NAME+1];
new string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Nāve: %s tika nogalināts..

;(.", name, reason);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
//------------------------baze------------------------------
CreateObject(16771, 1923.078979, -1282.769531, 58.776184, 0.0000, 0.0000, 180.0000);
CreateObject(971, 1935.277344, -1304.516724, 55.549530, 0.0000, 0.0000, 0.0000);
}
if(strcmp("/baze", cmdtext, true, 6) == 0)
{
new Nick[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nick, sizeof(Nick));
if(strfind(Nick, "niks vai klans", true) != -1 || strfind(Nick, "niks vai klans", true) != -1) {
if(mainigais == 0) {
SendClientMessage(playerid, 0x33AA33AA,"Baze ir atverta");
MoveObject(baze, 1919.369263, -1301.205688, 52.224586, 3); //vala
mainigais = 1;
} else if(mainigais == 1) {
SendClientMessage(playerid, 0xAA3333AA,"Baze ir aizverta");
MoveObject(baze, 1919.369263, -1301.205688, 44.224586, 3); //ciet
mainigais = 0;
}
}
return 1;
}
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(24) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(27) : error 055: start of function body without function header
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(31) : error 021: symbol already defined: "SetGameModeText"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(35) : error 010: invalid function or declaration
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(36) : error 010: invalid function or declaration
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(42) : error 021: symbol already defined: "AddStaticVehicle"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(52) : error 021: symbol already defined: "AddStaticPickup"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(62) : error 010: invalid function or declaration
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(122) : error 021: symbol already defined: "CreateObject"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(125) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(127) : error 010: invalid function or declaration
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(130) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(131) : error 010: invalid function or declaration
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(132) : error 010: invalid function or declaration
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(136) : error 010: invalid function or declaration
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(141) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(143) : error 010: invalid function or declaration
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(146) : warning 203: symbol is never used: "Nick"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(146) : warning 203: symbol is never used: "baze"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(146) : warning 203: symbol is never used: "count"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(146) : warning 203: symbol is never used: "id"
C:\Documents and Settings\Gundars\My Documents\Shooter\gamemodes\shooter.pwn(24) : warning 204: symbol is assigned a value that is never used: "mainigais"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
17 Errors.
kas man te ir nepareizi.. ?
