Page 5 of 11

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 26 Oct 2008, 17:04
by [NWA]Ä€BRIMS
man ir jautajums ka tas koordinatas ielikt lai butu bunkura bazuka?? |:) |:) (olegs)

un visapar so bunkuru man jau izdevas satasiit pavisam vienkarsi

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 26 Oct 2008, 19:15
by tigeris_[sL]
bet ir japieregistrejas mta lai taisitu bunkuru
man pienemsim saka ka japieregistrejas

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 23 Nov 2008, 15:05
by Ronyx69
Kā lai saliek rindiņas lai varētu izmantot ar vairākiem nikiem vai klaniem ?

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 23 Nov 2008, 21:48
by [AoD]Aleksis

Code: Select all

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, 1445.042847, -2479.386719, 4.551569, 3); //vala 
         mainigais = 1; 
      } else if(mainigais == 1) { 
         SendClientMessage(playerid, 0xAA3333AA,"Baze ir aizverta"); 
         MoveObject(baze, 1445.042847, -2479.386719, 12.551569, 3); //ciet 
         mainigais = 0; 

      } 
   } 
   return 1; 
}
"niks vai klans" vietā ir jāliek niks vai clan tag
vairāk pielikt kā 2 klanus man liekas nav iespējams

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 05 Dec 2008, 19:33
by [PSD]Drager

Code: Select all

C:\Documents and Settings\User\Desktop\Pūšļi.pwn(134) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\Pūšļi..pwn(153) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\Pūšļi..pwn(558) : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection")
C:\Documents and Settings\User\Desktop\Pūšļi..pwn(670) : error 017: undefined symbol "mainigais"
C:\Documents and Settings\User\Desktop\Pūšļi..pwn(688) : warning 209: function "OnPlayerCommandText" should return a value
C:\Documents and Settings\User\Desktop\Pūšļi..pwn(688) : warning 235: public function lacks forward declaration (symbol "GameModeExitFunc")
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Kads nevaretu paliidzet izlabot to vienu erroru[/code]

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 06 Dec 2008, 23:24
by Stailers[BoxG]
Ja tu gribi, lai kāds tev palīdz, tad ieliec skriptu...

Re: [PAWNO]Kā uztaisīt bunkuru

Posted: 01 Jan 2009, 13:53
by Reinixx
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, 1445.042847, -2479.386719, 4.551569, 3); //vala
mainigais = 1;
} else if(mainigais == 1) {
SendClientMessage(playerid, 0xAA3333AA,"Baze ir aizverta");
MoveObject(baze, 1445.042847, -2479.386719, 12.551569, 3); //ciet
mainigais = 0;

nu tur kur ir tas 0xAA3333A nevajadzeetu visiem pateikt kas taa par kraasuu.. |:)
p.s uzrakstiitu visas krāsa tākā varētu.. xD

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 01 Jan 2009, 14:01
by Reinixx
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..O_o!",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.. ? :?

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 01 Jan 2009, 14:35
by Deliite[1337]
nu psc,vareji tak kat kur nohostet nevis kopet visu GameMod'u!!!

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 01 Jan 2009, 15:14
by [AoD]Aleksis
Kā var pateik visas krāsas ja viņu ir simtiem ?

0xRRGGBBAA ColorPicker<
Bet par skriptu runājot, lielākā daļa ir nepareiza, kad būsi uploadojis kkur, mēģināšu varbūt palīdzēt

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 01 Jan 2009, 15:21
by Reinixx

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 01 Jan 2009, 15:53
by [AoD]Aleksis
http://yy.lv/download.php?f=10456

1.) tas nav tavs gamemods, bet gan LS-Parachute, nav smuki credits nodzēst :.
2.) idention netaisijos labot, bet vismaz strādā, niku ''kautkas'' vietā nomaini uz savu
tā gadās ka credits dzēšot nodzēš nost to ko nevajag :/

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 01 Jan 2009, 16:07
by Reinixx
paldies..
palieku tev paraadaa.. :)

Re: [PAWNO] Kā uztaisīt bunkuru

Posted: 01 Jan 2009, 16:24
by Reinixx
Alexis nevelies mana serveri iankt par skripteri.. ? :) skype : guncha73

Nesaprotu

Posted: 03 Jan 2009, 14:42
by MM_Savejias
Man rada ka tada majaslapa neksiste kur var dabut to kodu.Un kada veida jaliek tie visi kodi ??? :? :? :/