[POMOC]Kako da napravim komandu da nekog prozovem

Započeo hood9, April 03, 2011, 22:53:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:svoj mod
Detaljan opis problema:kako da napravim komandu /prozovi imam Drag race na Aeeru to je FS i sve radi al nznm kak napravit komandu da nekog prozovem
Dio skripte:pawn
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Evo ako ti pase to : btw ali moras kod ove komande napravit CP gdje ce ti igrac morat doci kad bude prozvan CP[giveplayerid] = 200; ali evo da se nemucis dao sam ti dole drugu komandu koja je lakasa i bolaj  ;)
   if (strcmp(cmd, "/dragrace", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /dragrace [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, x,y,z,10.0);
CP[giveplayerid] = 200;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ORGANIZATOR %s je pozvao %s na startnu liniju!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
}
return 1;
}
Poslednja Izmena: April 03, 2011, 23:15:46 POSLE PODNE od $--L84S--$

C:\Users\USER\Desktop\SAMP Server\filterscripts\race.pwn(260) : error 010: invalid function or declaration
C:\Users\USER\Desktop\SAMP Server\filterscripts\race.pwn(262) : error 010: invalid function or declaration
C:\Users\USER\Desktop\SAMP Server\filterscripts\race.pwn(265) : error 010: invalid function or declaration
C:\Users\USER\Desktop\SAMP Server\filterscripts\race.pwn(268) : error 010: invalid function or declaration
C:\Users\USER\Desktop\SAMP Server\filterscripts\race.pwn(271) : error 010: invalid function or declaration
C:\Users\USER\Desktop\SAMP Server\filterscripts\race.pwn(273) : error 010: invalid function or declaration
C:\Users\USER\Desktop\SAMP Server\filterscripts\race.pwn(283) : error 010: invalid function or declaration
C:\Users\USER\Desktop\SAMP Server\filterscripts\race.pwn(288) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.

Evo ti ova ova ce ti radit znam zasto ti neradi gornja Zbog CP evo ti ova :
if(strcmp(cmd, "/dragrace", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Pisi: /dragrace [id igraca/Dio imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin: %s, tebi je admin %s aktivirao DragRace", giveplayer, sendername);
SendClientMessage(giveplayerid,COLOR_RED, string);
format(string, sizeof(string), "[DragRace] igracu %s je DragRace aktivirao admin %s", giveplayer, sendername);
SendAdminMessage(COLOR_GREEN, string);
PlayerInfo[giveplayerid][pDrag] = 1;
}
}
}
else
{
format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}

btw imas pDrag; ?? ako nemas dodaj to jos.
Poslednja Izmena: April 03, 2011, 23:17:23 POSLE PODNE od $--L84S--$

Eo cijela FS

//===========Include fajlovi==================
#include <a_samp>
//==========Pokretne kapije===================
new pokretna;
new pokretna2;
new pokretna3;
new pokretna4;
new pokretna5;
new pokretna6;
new pokretna7;
new pokretna8;
new pokretna9;
new pokretna10;
new pokretna11;
new pokretna12;
new pokretna13;
new pokretna14;
new pokretna15;
new pokretna16;
new pokretna17;
new pokretna18;
new pokretna19;
new pokretna20;
new drag;
new drag2;
new drag3;
new od_auta;
//===========Boje==========================
#define ZUTO 0xDABB3EAA
#define CRVENO 0xAA3333AA

public OnGameModeInit()
{
AddStaticVehicle(411,2118.418,-2435.495,13.347,178.0,0,0); // spawnpoint
AddStaticVehicle(411,2115.031,-2435.560,13.347,178.0,0,0); // spawnpoint (1)
AddStaticVehicle(411,2111.769,-2435.650,13.347,178.0,0,0); // spawnpoint (2)
AddStaticVehicle(411,2108.580,-2435.653,13.347,178.0,0,0); // spawnpoint (3)
AddStaticVehicle(411,2105.037,-2435.652,13.347,178.0,0,0); // spawnpoint (4)
AddStaticVehicle(411,2101.290,-2435.670,13.347,178.0,0,0); // spawnpoint (5)
AddStaticVehicle(411,2097.323,-2435.667,13.347,178.0,0,0); // spawnpoint (6)
AddStaticVehicle(411,2093.811,-2435.742,13.347,178.0,0,0); // spawnpoint (7)
AddStaticVehicle(411,2090.235,-2435.807,13.347,178.0,0,0); // spawnpoint (8)
AddStaticVehicle(411,2086.325,-2435.877,13.347,178.0,0,0); // spawnpoint (9)
AddStaticVehicle(411,2082.652,-2435.966,13.347,178.0,0,0); // spawnpoint (10)
AddStaticVehicle(411,2081.928,-2456.099,13.347,0.0,0,0); // spawnpoint (11)
AddStaticVehicle(411,2085.207,-2456.087,13.347,0.0,0,0); // spawnpoint (12)
AddStaticVehicle(411,2088.444,-2456.022,13.347,0.0,0,0); // spawnpoint (13)
AddStaticVehicle(411,2091.848,-2456.003,13.347,0.0,0,0); // spawnpoint (14)
AddStaticVehicle(411,2095.189,-2455.981,13.347,0.0,0,0); // spawnpoint (15)
AddStaticVehicle(411,2098.375,-2455.967,13.347,0.0,0,0); // spawnpoint (16)
AddStaticVehicle(411,2101.819,-2455.970,13.347,0.0,0,0); // spawnpoint (17)
AddStaticVehicle(411,2105.243,-2455.907,13.347,0.0,0,0); // spawnpoint (18)
AddStaticVehicle(411,2108.594,-2455.854,13.347,0.0,0,0); // spawnpoint (19)
AddStaticVehicle(411,2111.897,-2455.839,13.347,0.0,0,0); // spawnpoint (20)
AddStaticVehicle(411,2115.334,-2455.752,13.347,0.0,0,0); // spawnpoint (21)
AddStaticVehicle(411,2118.464,-2455.626,13.347,0.0,0,0); // spawnpoint (22)
CreateObject(8841,2100.395,-2445.903,15.873,0.0,0.0,0.0); // object
CreateObject(974,2081.799,-2459.272,16.250,0.0,0.0,0.0); // object (3)
CreateObject(974,2081.815,-2459.287,15.325,0.0,0.0,0.0); // object (4)
CreateObject(974,2088.452,-2459.322,15.325,0.0,0.0,0.0); // object (5)
CreateObject(974,2088.421,-2459.290,16.262,0.0,0.0,0.0); // object (6)
CreateObject(974,2095.125,-2459.290,15.325,0.0,0.0,0.0); // object (7)
CreateObject(974,2095.141,-2459.259,16.272,0.0,0.0,0.0); // object (8)
CreateObject(974,2101.796,-2459.284,15.325,0.0,0.0,0.0); // object (9)
CreateObject(974,2101.807,-2459.253,16.295,0.0,0.0,0.0); // object (10)
CreateObject(974,2108.460,-2459.294,15.325,0.0,0.0,0.0); // object (11)
CreateObject(974,2108.465,-2459.265,16.294,0.0,0.0,0.0); // object (12)
CreateObject(974,2115.138,-2459.280,15.325,0.0,0.0,0.0); // object (13)
CreateObject(974,2115.142,-2459.272,16.283,0.0,0.0,0.0); // object (14)
CreateObject(974,2118.953,-2459.261,15.300,0.0,0.0,0.0); // object (15)
CreateObject(974,2118.958,-2459.253,16.277,0.0,0.0,0.0); // object (16)
CreateObject(974,2122.239,-2455.933,15.325,0.0,0.0,90.000); // object (17)
CreateObject(974,2122.231,-2455.932,16.258,0.0,0.0,90.000); // object (18)
CreateObject(974,2122.255,-2449.243,15.325,0.0,0.0,90.000); // object (19)
CreateObject(974,2122.243,-2442.585,15.325,0.0,0.0,90.000); // object (20)
CreateObject(974,2122.304,-2435.914,15.325,0.0,0.0,90.000); // object (21)
CreateObject(974,2122.296,-2435.936,16.264,0.0,0.0,90.000); // object (22)
CreateObject(974,2118.949,-2432.591,15.325,0.0,0.0,180.000); // object (23)
CreateObject(974,2118.961,-2432.600,16.260,0.0,0.0,180.000); // object (24)
CreateObject(974,2112.281,-2432.581,15.325,0.0,0.0,180.000); // object (25)
CreateObject(974,2112.294,-2432.614,16.251,0.0,0.0,180.000); // object (26)
CreateObject(974,2105.577,-2432.561,15.325,0.0,0.0,180.000); // object (27)
CreateObject(974,2105.580,-2432.620,16.264,0.0,0.0,180.000); // object (28)
CreateObject(974,2098.882,-2432.610,15.325,0.0,0.0,180.000); // object (29)
CreateObject(974,2098.883,-2432.620,16.256,0.0,0.0,180.000); // object (30)
CreateObject(974,2092.206,-2432.594,15.325,0.0,0.0,180.000); // object (31)
CreateObject(974,2092.199,-2432.605,16.288,0.0,0.0,180.000); // object (32)
CreateObject(974,2085.552,-2432.624,15.325,0.0,0.0,180.000); // object (33)
CreateObject(974,2085.549,-2432.632,16.324,0.0,0.0,180.000); // object (34)
CreateObject(974,2081.784,-2432.659,15.350,0.0,0.0,180.000); // object (35)
CreateObject(974,2081.777,-2432.669,16.285,0.0,0.0,180.000); // object (36)
CreateObject(974,2078.541,-2436.021,15.325,0.0,0.0,-90.000); // object (37)
CreateObject(974,2078.549,-2436.004,16.279,0.0,0.0,-90.000); // object (38)
CreateObject(974,2078.497,-2455.955,15.325,0.0,0.0,-90.000); // object (39)
CreateObject(974,2078.504,-2455.962,16.271,0.0,0.0,-90.000); // object (40)
CreateObject(974,2078.574,-2436.937,15.301,0.0,0.0,-90.000); // object (42)
CreateObject(974,2078.529,-2454.978,15.256,0.0,0.0,-90.000); // object (43)
///==================POKRETNE===============================================
pokretna = CreateObject(8263,1992.131,-2477.557,5.0,0.0,0.0,0.0); // Pokretna
pokretna2 = CreateObject(8263,1872.229,-2477.556,5.0,0.0,0.0,0.0); // Pokretna 2
pokretna3 = CreateObject(8263,1752.346,-2477.548,5.0,0.0,0.0,0.0); // Pokretna 3
pokretna4 = CreateObject(8263,1632.491,-2477.559,5.0,0.0,0.0,0.0); // Pokretna 4
pokretna5 = CreateObject(8263,1512.641,-2477.573,5.0,0.0,0.0,0.0); // Pokretna 5
pokretna6 = CreateObject(982,1452.647,-2490.639,5.0,0.0,0.0,0.0); // Pokretna 6
pokretna7 = CreateObject(983,1452.646,-2506.652,5.0,0.0,0.0,0.0); // Pokretna 7
pokretna8 = CreateObject(8263,1512.500,-2510.203,5.0,0.0,0.0,-180.000); // Pokretna 8
pokretna9 = CreateObject(8263,1632.382,-2510.173,5.0,0.0,0.0,-180.000); // Pokretna 9
pokretna10 = CreateObject(8263,1752.254,-2510.212,5.0,0.0,0.0,-180.000); // Pokretna 10
pokretna11 = CreateObject(8263,1872.120,-2510.134,5.0,0.0,0.0,-180.000); // Pokretna 11
pokretna12 = CreateObject(8263,1991.994,-2510.086,5.0,0.0,0.0,-180.000); // Pokretna 12
pokretna13 = CreateObject(978,2051.827,-2505.082,5.0,0.0,0.0,-90.000); // Pokretna 13
pokretna14 = CreateObject(978,2047.313,-2500.581,5.0,0.0,0.0,0.0); // Pokretna 14
pokretna15 = CreateObject(978,2051.908,-2482.522,5.0,0.0,0.0,-90.000); // Pokretna 15
pokretna16 = CreateObject(978,2047.402,-2487.060,5.0,0.0,0.0,-180.000); // Pokretna 16
pokretna17 = CreateObject(979,2047.390,-2493.282,5.0,0.0,0.0,0.0); // Pokretna 17
pokretna18 = CreateObject(978,2047.355,-2494.510,5.0,0.0,0.0,-180.000); // Pokretna 18
pokretna19 = CreateObject(1633,1457.066,-2486.559,5.0,0.0,0.0,90.000); // Pokretna 19
pokretna20 = CreateObject(1633,1457.103,-2501.539,5.0,0.0,0.0,90.000); // Pokretna 20
///=========================Pokretne od one male kapijice===================
drag = CreateObject(983,2042.660,-2497.361,13.230,0.0,0.0,0.0); // Pokretna od race 3
drag2 = CreateObject(983,2042.668,-2491.000,13.230,0.0,0.0,0.0); // Pokretna od race 2
drag3 = CreateObject(983,2042.681,-2490.132,13.255,0.0,0.0,0.0); // Pokretna od race
///==============================Od auta====================================
od_auta = CreateObject(980,2078.545,-2445.934,15.320,0.0,0.0,90.000); // object (41)
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/raceon", cmdtext, true, 10) == 0)
    {
pokretna = CreateObject(8263,1992.131,-2477.557,15.640,0.0,0.0,0.0); // Pokretna
    pokretna2 = CreateObject(8263,1872.229,-2477.556,15.590,0.0,0.0,0.0); // Pokretna 2
    pokretna3 = CreateObject(8263,1752.346,-2477.548,15.581,0.0,0.0,0.0); // Pokretna 3
      pokretna4 = CreateObject(8263,1632.491,-2477.559,15.581,0.0,0.0,0.0); // Pokretna 4
    pokretna5 = CreateObject(8263,1512.641,-2477.573,15.581,0.0,0.0,0.0); // Pokretna 5
        pokretna6 = CreateObject(982,1452.647,-2490.639,13.238,0.0,0.0,0.0); // Pokretna 6
    pokretna7 = CreateObject(983,1452.646,-2506.652,13.238,0.0,0.0,0.0); // Pokretna 7
    pokretna8 = CreateObject(8263,1512.500,-2510.203,15.655,0.0,0.0,-180.000); // Pokretna 8
    pokretna9 = CreateObject(8263,1632.382,-2510.173,15.656,0.0,0.0,-180.000); // Pokretna 9
    pokretna10 = CreateObject(8263,1752.254,-2510.212,15.656,0.0,0.0,-180.000); // Pokretna 10
    pokretna11 = CreateObject(8263,1872.120,-2510.134,15.656,0.0,0.0,-180.000); // Pokretna 11
    pokretna12 = CreateObject(8263,1991.994,-2510.086,15.640,0.0,0.0,-180.000); // Pokretna 12
      pokretna13 = CreateObject(978,2051.827,-2505.082,13.387,0.0,0.0,-90.000); // Pokretna 13
    pokretna14 = CreateObject(978,2047.313,-2500.581,13.387,0.0,0.0,0.0); // Pokretna 14
    pokretna15 = CreateObject(978,2051.908,-2482.522,13.379,0.0,0.0,-90.000); // Pokretna 15
    pokretna16 = CreateObject(978,2047.402,-2487.060,13.379,0.0,0.0,-180.000); // Pokretna 16
    pokretna17 = CreateObject(979,2047.390,-2493.282,13.387,0.0,0.0,0.0); // Pokretna 17
    pokretna18 = CreateObject(978,2047.355,-2494.510,13.387,0.0,0.0,-180.000); // Pokretna 18
    pokretna19 = CreateObject(1633,1457.066,-2486.559,13.605,0.0,0.0,90.000); // Pokretna 19
    pokretna20 = CreateObject(1633,1457.103,-2501.539,13.580,0.0,0.0,90.000); // Pokretna 20
    SendClientMessage(playerid,ZUTO, "Podizes celi drag race!");
return 1;
}
    if (strcmp("/raceoff", cmdtext, true, 10) == 0)
    {
DestroyObject(pokretna);
DestroyObject(pokretna2);
DestroyObject(pokretna3);
DestroyObject(pokretna4);
DestroyObject(pokretna5);
DestroyObject(pokretna6);
DestroyObject(pokretna7);
DestroyObject(pokretna8);
DestroyObject(pokretna9);
DestroyObject(pokretna10);
DestroyObject(pokretna11);
DestroyObject(pokretna12);
DestroyObject(pokretna13);
DestroyObject(pokretna14);
DestroyObject(pokretna15);
DestroyObject(pokretna16);
DestroyObject(pokretna17);
DestroyObject(pokretna18);
DestroyObject(pokretna19);
DestroyObject(pokretna20);
SendClientMessage(playerid,ZUTO, "Spustas celi drag race!");
return 1;
}
    if (strcmp("/so", cmdtext, true, 10) == 0)
    {
        MoveObject(drag,2042.660,-2497.361,5.255, 2.97);
        MoveObject(drag2,2042.668,-2491.000,5.255, 2.97);
        MoveObject(drag3,2042.681,-2490.132,5.255, 2.97);
        SendClientMessage(playerid,ZUTO, "Spustas traku za pocetak!"); // Nzm kako drugacije reci :D
return 1;
}
    if (strcmp("/sz", cmdtext, true, 10) == 0)
    {
        MoveObject(drag,2042.660,-2497.361,13.255, 5.97);
        MoveObject(drag2,2042.668,-2491.000,13.255, 5.97);
        MoveObject(drag3,2042.681,-2490.132,13.255, 5.97);
    SendClientMessage(playerid,ZUTO, "Dizes traku za pocetak!");
    PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
return 1;
}
    if (strcmp("/autio", cmdtext, true, 10) == 0)
    {
MoveObject(od_auta,2078.545,-2445.934,5.320, 2.97);
SendClientMessage(playerid,ZUTO, "Spustas kapiju automobila!");
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
return 1;
}
    if (strcmp("/autiz", cmdtext, true, 10) == 0)
    {
  SendClientMessage(playerid,ZUTO, "Dizes kapiju automobila!");
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
MoveObject(od_auta,2078.545,-2445.934,15.320, 5.97);
return 1;
}
    if (strcmp("/draghelp", cmdtext, true, 10) == 0)
    {
  SendClientMessage(playerid,CRVENO, "Komande drag race:");
  SendClientMessage(playerid,ZUTO, "/raceon - ukljuciti drag");
  SendClientMessage(playerid,ZUTO, "/raceoff - iskljuciti drag");
  SendClientMessage(playerid,ZUTO, "/so - spustiti onu malu kapijicu za pocetak");
  SendClientMessage(playerid,ZUTO, "/sz - dignuti onu malu kapijicu za pocetak");
  SendClientMessage(playerid,ZUTO, "/autio - otvoriti kapiju auta");
  SendClientMessage(playerid,ZUTO, "/autiz - zatvoriti kapiju auta");
  SendClientMessage(playerid,CRVENO, "Drag race komande");
return 1;
}
return 0;
}
if(strcmp(cmd, "/dragrace", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Pisi: /dragrace [id igraca/Dio imena]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 1)
         {
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  format(string, sizeof(string), "Admin: %s, tebi je admin %s aktivirao DragRace", giveplayer, sendername);
                  SendClientMessage(giveplayerid,COLOR_RED, string);
                  format(string, sizeof(string), "[DragRace] igracu %s je DragRace aktivirao admin %s", giveplayer, sendername);
                  SendAdminMessage(COLOR_GREEN, string);
                  PlayerInfo[giveplayerid][pDrag] = 1;
               }
            }
         }
         else
         {
            format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
            SendClientMessage(playerid, COLOR_GRAD1, string);
         }
      }
      return 1;
   }
//==========================KRAJ================================================
// Vozila: 23
// Objekta: 65


Neradi et ti ta FS pa mi to  napravi to je iz FS sam uzeo sto imam

Citat: hood9 poslato April 03, 2011, 23:21:38 POSLE PODNE
Neradi et ti ta FS pa mi to  napravi to je iz FS sam uzeo sto imam
Zasto jednostavno ne prebacis u GM i sve bih ti radilo ak neznas ja cu ti pomoc.


Citat: hood9 poslato April 04, 2011, 06:25:06 PRE PODNE
ae ak imas skype,msn,xf  il nes pa da mi napravis
Poslo sam na PM sve ako bude problema javi mi na PM takoder Msm da ovdi moze Lock.

ubacim ovo sve

new pokretna;
new pokretna2;
new pokretna3;
new pokretna4;
new pokretna5;
new pokretna6;
new pokretna7;
new pokretna8;
new pokretna9;
new pokretna10;
new pokretna11;
new pokretna12;
new pokretna13;
new pokretna14;
new pokretna15;
new pokretna16;
new pokretna17;
new pokretna18;
new pokretna19;
new pokretna20;
new drag;
new drag2;
new drag3;
new od_auta;


//----drag event objekt------------------
CreateObject(8841,2100.395,-2445.903,15.873,0.0,0.0,0.0); // object
CreateObject(974,2081.799,-2459.272,16.250,0.0,0.0,0.0); // object (3)
CreateObject(974,2081.815,-2459.287,15.325,0.0,0.0,0.0); // object (4)
CreateObject(974,2088.452,-2459.322,15.325,0.0,0.0,0.0); // object (5)
CreateObject(974,2088.421,-2459.290,16.262,0.0,0.0,0.0); // object (6)
CreateObject(974,2095.125,-2459.290,15.325,0.0,0.0,0.0); // object (7)
CreateObject(974,2095.141,-2459.259,16.272,0.0,0.0,0.0); // object (8)
CreateObject(974,2101.796,-2459.284,15.325,0.0,0.0,0.0); // object (9)
CreateObject(974,2101.807,-2459.253,16.295,0.0,0.0,0.0); // object (10)
CreateObject(974,2108.460,-2459.294,15.325,0.0,0.0,0.0); // object (11)
CreateObject(974,2108.465,-2459.265,16.294,0.0,0.0,0.0); // object (12)
CreateObject(974,2115.138,-2459.280,15.325,0.0,0.0,0.0); // object (13)
CreateObject(974,2115.142,-2459.272,16.283,0.0,0.0,0.0); // object (14)
CreateObject(974,2118.953,-2459.261,15.300,0.0,0.0,0.0); // object (15)
CreateObject(974,2118.958,-2459.253,16.277,0.0,0.0,0.0); // object (16)
CreateObject(974,2122.239,-2455.933,15.325,0.0,0.0,90.000); // object (17)
CreateObject(974,2122.231,-2455.932,16.258,0.0,0.0,90.000); // object (18)
CreateObject(974,2122.255,-2449.243,15.325,0.0,0.0,90.000); // object (19)
CreateObject(974,2122.243,-2442.585,15.325,0.0,0.0,90.000); // object (20)
CreateObject(974,2122.304,-2435.914,15.325,0.0,0.0,90.000); // object (21)
CreateObject(974,2122.296,-2435.936,16.264,0.0,0.0,90.000); // object (22)
CreateObject(974,2118.949,-2432.591,15.325,0.0,0.0,180.000); // object (23)
CreateObject(974,2118.961,-2432.600,16.260,0.0,0.0,180.000); // object (24)
CreateObject(974,2112.281,-2432.581,15.325,0.0,0.0,180.000); // object (25)
CreateObject(974,2112.294,-2432.614,16.251,0.0,0.0,180.000); // object (26)
CreateObject(974,2105.577,-2432.561,15.325,0.0,0.0,180.000); // object (27)
CreateObject(974,2105.580,-2432.620,16.264,0.0,0.0,180.000); // object (28)
CreateObject(974,2098.882,-2432.610,15.325,0.0,0.0,180.000); // object (29)
CreateObject(974,2098.883,-2432.620,16.256,0.0,0.0,180.000); // object (30)
CreateObject(974,2092.206,-2432.594,15.325,0.0,0.0,180.000); // object (31)
CreateObject(974,2092.199,-2432.605,16.288,0.0,0.0,180.000); // object (32)
CreateObject(974,2085.552,-2432.624,15.325,0.0,0.0,180.000); // object (33)
CreateObject(974,2085.549,-2432.632,16.324,0.0,0.0,180.000); // object (34)
CreateObject(974,2081.784,-2432.659,15.350,0.0,0.0,180.000); // object (35)
CreateObject(974,2081.777,-2432.669,16.285,0.0,0.0,180.000); // object (36)
CreateObject(974,2078.541,-2436.021,15.325,0.0,0.0,-90.000); // object (37)
CreateObject(974,2078.549,-2436.004,16.279,0.0,0.0,-90.000); // object (38)
CreateObject(974,2078.497,-2455.955,15.325,0.0,0.0,-90.000); // object (39)
CreateObject(974,2078.504,-2455.962,16.271,0.0,0.0,-90.000); // object (40)
CreateObject(974,2078.574,-2436.937,15.301,0.0,0.0,-90.000); // object (42)
CreateObject(974,2078.529,-2454.978,15.256,0.0,0.0,-90.000); // object (43)
///==================POKRETNE===============================================
pokretna = CreateObject(8263,1992.131,-2477.557,5.0,0.0,0.0,0.0); // Pokretna
pokretna2 = CreateObject(8263,1872.229,-2477.556,5.0,0.0,0.0,0.0); // Pokretna 2
pokretna3 = CreateObject(8263,1752.346,-2477.548,5.0,0.0,0.0,0.0); // Pokretna 3
pokretna4 = CreateObject(8263,1632.491,-2477.559,5.0,0.0,0.0,0.0); // Pokretna 4
pokretna5 = CreateObject(8263,1512.641,-2477.573,5.0,0.0,0.0,0.0); // Pokretna 5
pokretna6 = CreateObject(982,1452.647,-2490.639,5.0,0.0,0.0,0.0); // Pokretna 6
pokretna7 = CreateObject(983,1452.646,-2506.652,5.0,0.0,0.0,0.0); // Pokretna 7
pokretna8 = CreateObject(8263,1512.500,-2510.203,5.0,0.0,0.0,-180.000); // Pokretna 8
pokretna9 = CreateObject(8263,1632.382,-2510.173,5.0,0.0,0.0,-180.000); // Pokretna 9
pokretna10 = CreateObject(8263,1752.254,-2510.212,5.0,0.0,0.0,-180.000); // Pokretna 10
pokretna11 = CreateObject(8263,1872.120,-2510.134,5.0,0.0,0.0,-180.000); // Pokretna 11
pokretna12 = CreateObject(8263,1991.994,-2510.086,5.0,0.0,0.0,-180.000); // Pokretna 12
pokretna13 = CreateObject(978,2051.827,-2505.082,5.0,0.0,0.0,-90.000); // Pokretna 13
pokretna14 = CreateObject(978,2047.313,-2500.581,5.0,0.0,0.0,0.0); // Pokretna 14
pokretna15 = CreateObject(978,2051.908,-2482.522,5.0,0.0,0.0,-90.000); // Pokretna 15
pokretna16 = CreateObject(978,2047.402,-2487.060,5.0,0.0,0.0,-180.000); // Pokretna 16
pokretna17 = CreateObject(979,2047.390,-2493.282,5.0,0.0,0.0,0.0); // Pokretna 17
pokretna18 = CreateObject(978,2047.355,-2494.510,5.0,0.0,0.0,-180.000); // Pokretna 18
pokretna19 = CreateObject(1633,1457.066,-2486.559,5.0,0.0,0.0,90.000); // Pokretna 19
pokretna20 = CreateObject(1633,1457.103,-2501.539,5.0,0.0,0.0,90.000); // Pokretna 20
///=========================Pokretne od one male kapijice===================
drag = CreateObject(983,2042.660,-2497.361,13.230,0.0,0.0,0.0); // Pokretna od race 3
drag2 = CreateObject(983,2042.668,-2491.000,13.230,0.0,0.0,0.0); // Pokretna od race 2
drag3 = CreateObject(983,2042.681,-2490.132,13.255,0.0,0.0,0.0); // Pokretna od race
///==============================Od auta====================================
od_auta = CreateObject(980,2078.545,-2445.934,15.320,0.0,0.0,90.000); // object (41)


konventiro i sve

i auta ubacio

//-------drag auta-----------------
AddStaticVehicle(411,2118.418,-2435.495,13.347,178.0,0,0); // spawnpoint
AddStaticVehicle(411,2115.031,-2435.560,13.347,178.0,0,0); // spawnpoint (1)
AddStaticVehicle(411,2111.769,-2435.650,13.347,178.0,0,0); // spawnpoint (2)
AddStaticVehicle(411,2108.580,-2435.653,13.347,178.0,0,0); // spawnpoint (3)
AddStaticVehicle(411,2105.037,-2435.652,13.347,178.0,0,0); // spawnpoint (4)
AddStaticVehicle(411,2101.290,-2435.670,13.347,178.0,0,0); // spawnpoint (5)
AddStaticVehicle(411,2097.323,-2435.667,13.347,178.0,0,0); // spawnpoint (6)
AddStaticVehicle(411,2093.811,-2435.742,13.347,178.0,0,0); // spawnpoint (7)
AddStaticVehicle(411,2090.235,-2435.807,13.347,178.0,0,0); // spawnpoint (8)
AddStaticVehicle(411,2086.325,-2435.877,13.347,178.0,0,0); // spawnpoint (9)
AddStaticVehicle(411,2082.652,-2435.966,13.347,178.0,0,0); // spawnpoint (10)
AddStaticVehicle(411,2081.928,-2456.099,13.347,0.0,0,0); // spawnpoint (11)
AddStaticVehicle(411,2085.207,-2456.087,13.347,0.0,0,0); // spawnpoint (12)
AddStaticVehicle(411,2088.444,-2456.022,13.347,0.0,0,0); // spawnpoint (13)
AddStaticVehicle(411,2091.848,-2456.003,13.347,0.0,0,0); // spawnpoint (14)
AddStaticVehicle(411,2095.189,-2455.981,13.347,0.0,0,0); // spawnpoint (15)
AddStaticVehicle(411,2098.375,-2455.967,13.347,0.0,0,0); // spawnpoint (16)
AddStaticVehicle(411,2101.819,-2455.970,13.347,0.0,0,0); // spawnpoint (17)
AddStaticVehicle(411,2105.243,-2455.907,13.347,0.0,0,0); // spawnpoint (18)
AddStaticVehicle(411,2108.594,-2455.854,13.347,0.0,0,0); // spawnpoint (19)
AddStaticVehicle(411,2111.897,-2455.839,13.347,0.0,0,0); // spawnpoint (20)
AddStaticVehicle(411,2115.334,-2455.752,13.347,0.0,0,0); // spawnpoint (21)
AddStaticVehicle(411,2118.464,-2455.626,13.347,0.0,0,0); // spawnpoint (22)



I dode mi 25 warninga

C:\Users\USER\Desktop\gaga.pwn(17412) : warning 209: function "OnPlayerLogin" should return a value
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "drag"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "drag2"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "drag3"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "od_auta"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna10"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna11"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna12"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna13"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna14"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna15"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna16"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna17"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna18"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna19"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna2"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna20"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna3"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna4"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna5"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna6"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna7"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna8"
C:\Users\USER\Desktop\gaga.pwn(42405) : warning 203: symbol is never used: "pokretna9"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size:           9900 bytes
Code size:          2236888 bytes
Data size:          5202056 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5352 cells (21408 bytes)
Total requirements: 7465228 bytes

25 Warnings.


al to nie nis problem kad ubacim ovo




 if (strcmp("/raceon", cmdtext, true, 10) == 0)
   {
pokretna = CreateObject(8263,1992.131,-2477.557,15.640,0.0,0.0,0.0); // Pokretna
   pokretna2 = CreateObject(8263,1872.229,-2477.556,15.590,0.0,0.0,0.0); // Pokretna 2
   pokretna3 = CreateObject(8263,1752.346,-2477.548,15.581,0.0,0.0,0.0); // Pokretna 3
    pokretna4 = CreateObject(8263,1632.491,-2477.559,15.581,0.0,0.0,0.0); // Pokretna 4
    pokretna5 = CreateObject(8263,1512.641,-2477.573,15.581,0.0,0.0,0.0); // Pokretna 5
       pokretna6 = CreateObject(982,1452.647,-2490.639,13.238,0.0,0.0,0.0); // Pokretna 6
   pokretna7 = CreateObject(983,1452.646,-2506.652,13.238,0.0,0.0,0.0); // Pokretna 7
    pokretna8 = CreateObject(8263,1512.500,-2510.203,15.655,0.0,0.0,-180.000); // Pokretna 8
    pokretna9 = CreateObject(8263,1632.382,-2510.173,15.656,0.0,0.0,-180.000); // Pokretna 9
    pokretna10 = CreateObject(8263,1752.254,-2510.212,15.656,0.0,0.0,-180.000); // Pokretna 10
    pokretna11 = CreateObject(8263,1872.120,-2510.134,15.656,0.0,0.0,-180.000); // Pokretna 11
    pokretna12 = CreateObject(8263,1991.994,-2510.086,15.640,0.0,0.0,-180.000); // Pokretna 12
    pokretna13 = CreateObject(978,2051.827,-2505.082,13.387,0.0,0.0,-90.000); // Pokretna 13
    pokretna14 = CreateObject(978,2047.313,-2500.581,13.387,0.0,0.0,0.0); // Pokretna 14
    pokretna15 = CreateObject(978,2051.908,-2482.522,13.379,0.0,0.0,-90.000); // Pokretna 15
    pokretna16 = CreateObject(978,2047.402,-2487.060,13.379,0.0,0.0,-180.000); // Pokretna 16
    pokretna17 = CreateObject(979,2047.390,-2493.282,13.387,0.0,0.0,0.0); // Pokretna 17
    pokretna18 = CreateObject(978,2047.355,-2494.510,13.387,0.0,0.0,-180.000); // Pokretna 18
  pokretna19 = CreateObject(1633,1457.066,-2486.559,13.605,0.0,0.0,90.000); // Pokretna 19
    pokretna20 = CreateObject(1633,1457.103,-2501.539,13.580,0.0,0.0,90.000); // Pokretna 20
    SendClientMessage(playerid,ZUTO, "Podizes celi drag race!");
return 1;
}
   if (strcmp("/raceoff", cmdtext, true, 10) == 0)
   {
DestroyObject(pokretna);
DestroyObject(pokretna2);
DestroyObject(pokretna3);
DestroyObject(pokretna4);
DestroyObject(pokretna5);
DestroyObject(pokretna6);
DestroyObject(pokretna7);
DestroyObject(pokretna8);
DestroyObject(pokretna9);
DestroyObject(pokretna10);
DestroyObject(pokretna11);
DestroyObject(pokretna12);
DestroyObject(pokretna13);
DestroyObject(pokretna14);
DestroyObject(pokretna15);
DestroyObject(pokretna16);
DestroyObject(pokretna17);
DestroyObject(pokretna18);
DestroyObject(pokretna19);
DestroyObject(pokretna20);
SendClientMessage(playerid,ZUTO, "Spustas celi drag race!");
return 1;
}
   if (strcmp("/so", cmdtext, true, 10) == 0)
   {
       MoveObject(drag,2042.660,-2497.361,5.255, 2.97);
       MoveObject(drag2,2042.668,-2491.000,5.255, 2.97);
       MoveObject(drag3,2042.681,-2490.132,5.255, 2.97);
       SendClientMessage(playerid,ZUTO, "Spustas traku za pocetak!"); // Nzm kako drugacije reci :D
return 1;
}
   if (strcmp("/sz", cmdtext, true, 10) == 0)
   {
       MoveObject(drag,2042.660,-2497.361,13.255, 5.97);
       MoveObject(drag2,2042.668,-2491.000,13.255, 5.97);
       MoveObject(drag3,2042.681,-2490.132,13.255, 5.97);
   SendClientMessage(playerid,ZUTO, "Dizes traku za pocetak!");
   PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
return 1;
}
   if (strcmp("/autio", cmdtext, true, 10) == 0)
   {
MoveObject(od_auta,2078.545,-2445.934,5.320, 2.97);
SendClientMessage(playerid,ZUTO, "Spustas kapiju automobila!");
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
return 1;
}
   if (strcmp("/autiz", cmdtext, true, 10) == 0)
   {
  SendClientMessage(playerid,ZUTO, "Dizes kapiju automobila!");
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
MoveObject(od_auta,2078.545,-2445.934,15.320, 5.97);
return 1;
}
   if (strcmp("/draghelp", cmdtext, true, 10) == 0)
   {
  SendClientMessage(playerid,CRVENO, "Komande drag race:");
  SendClientMessage(playerid,ZUTO, "/raceon - ukljuciti drag");
  SendClientMessage(playerid,ZUTO, "/raceoff - iskljuciti drag");
  SendClientMessage(playerid,ZUTO, "/so - spustiti onu malu kapijicu za pocetak");
  SendClientMessage(playerid,ZUTO, "/sz - dignuti onu malu kapijicu za pocetak");
  SendClientMessage(playerid,ZUTO, "/autio - otvoriti kapiju auta");
  SendClientMessage(playerid,ZUTO, "/autiz - zatvoriti kapiju auta");
  SendClientMessage(playerid,CRVENO, "Drag race komande");
return 1;
}
return 0;
}
if(strcmp(cmd, "/dragrace", true) == 0)
  {
      if(IsPlayerConnected(playerid))
      {
         tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
           SendClientMessage(playerid, COLOR_GRAD2, "Pisi: /dragrace [id igraca/Dio imena]");
           return 1;
        }
        giveplayerid = ReturnUser(tmp);
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
           if(IsPlayerConnected(giveplayerid))
           {
               if(giveplayerid != INVALID_PLAYER_ID)
               {
                  GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                 GetPlayerName(playerid, sendername, sizeof(sendername));
                 format(string, sizeof(string), "Admin: %s, tebi je admin %s aktivirao DragRace", giveplayer, sendername);
                 SendClientMessage(giveplayerid,COLOR_RED, string);
                 format(string, sizeof(string), "[DragRace] igracu %s je DragRace aktivirao admin %s", giveplayer, sendername);
                 SendAdminMessage(COLOR_GREEN, string);
                 PlayerInfo[giveplayerid][pDrag] = 1;
              }
           }
        }
        else
        {
           format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
           SendClientMessage(playerid, COLOR_GRAD1, string);
        }
     }
     return 1;
  }


onda mi dode Pawn je prestao raditi

Poslednja Izmena: April 04, 2011, 14:37:28 POSLE PODNE od hood9

kad ti pawn dont send izbaci to znaci da  nemas isti broj { i } ili oko neke komande nesto nevalja tako je meni





U celom gamemodu mozda nemas isti broj { i } a nemislim u komandi




kad ubacim ovu komandu onda mi PAWN neradi a kad je izbacim onda radi