[pomoc]komande

Započeo _M2_, Oktobar 16, 2011, 19:26:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: nx
Detaljan opis problema: nemogu napravit komandu /ekreiraj /eport /eunisti u zcmdu pa ako mi moze neko prebacim u zcmd
Dio skripte: evo te komande

//---------------------Vozila(EVENT) Systemi----------------------------------------------------
    if(strcmp(cmd, "/ekreiraj", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] < 2)
{
    SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC}Admini samo!");
    return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ORANGE, "Koristite: {FFFFFF} /ekreiraj [ID Vozila] [Boja1] [Boja2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   ID vozila mora biti izmedu 400 ili 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{FFAA00}Koristite: {FFFFFF} /ekreiraj [ID Vozila] [Boja1] [Boja2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < -1 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{FFAA00}Koristite: {FFFFFF} /ekreiraj [ID Vozila] [Boja1] [Boja2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < -1 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
        Event1 = CreateVehicle(car, X,Y+5,Z+1, 0.0, color1, color2, 60000);
        Event2 = CreateVehicle(car, X,Y+10,Z+1, 0.0, color1, color2, 60000);
        Event3 = CreateVehicle(car, X,Y+15,Z+1, 0.0, color1, color2, 60000);
        Event4 = CreateVehicle(car, X+5,Y+5,Z+1, 0.0, color1, color2, 60000);
        Event5 = CreateVehicle(car, X+5,Y+15,Z+1, 0.0, color1, color2, 60000);
        Event6 = CreateVehicle(car, X+5,Y+10,Z+1, 0.0, color1, color2, 60000);
        Event7 = CreateVehicle(car, X+10,Y+5,Z+1, 0.0, color1, color2, 60000);
        Event8 = CreateVehicle(car, X+10,Y+10,Z+1, 0.0, color1, color2, 60000);
        Event9 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "*Admin %s, je kreirao grupu event vozila!",sendername);
            SendAdminMessage(COLOR_YELLOW, string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Je Kreirao Grupu Event Vozila (Boja 1: %d | Boja 2: %d)",d,m,y,h,mi,s,sendername,color1,color2);

}
return 1;
}
    if(strcmp(cmd, "/eunisti", true) == 0)
{
       if (PlayerInfo[playerid][pAdmin] >= 2)
   {
       DestroyVehicle(Event1);
       DestroyVehicle(Event2);
       DestroyVehicle(Event3);
       DestroyVehicle(Event4);
       DestroyVehicle(Event5);
       DestroyVehicle(Event6);
       DestroyVehicle(Event7);
       DestroyVehicle(Event8);
       DestroyVehicle(Event9);
       GetPlayerName(playerid, sendername, sizeof(sendername));
   format(string, 256, "*Admin %s, je unistio grupu event vozila!",sendername);
       SendAdminMessage(COLOR_YELLOW, string);
       }
   else
   {
  SendClientMessage(playerid,COLOR_GRAD1,"{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC} Admini samo!");
   }
        return 1;
    }
    if(strcmp(cmd, "/eport", true) == 0)
{
       if (PlayerInfo[playerid][pAdmin] >= 2)
   {
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
SetVehiclePos(Event1,X,Y+5,Z+1, 0.0);
SetVehiclePos(Event2,X,Y+10,Z+1, 0.0);
SetVehiclePos(Event3,X,Y+15,Z+1, 0.0);
SetVehiclePos(Event4,X+5,Y+5,Z+1, 0.0);
SetVehiclePos(Event5,X+5,Y+15,Z+1, 0.0);
SetVehiclePos(Event6,X+5,Y+10,Z+1, 0.0);
SetVehiclePos(Event7,X+10,Y+5,Z+1, 0.0);
SetVehiclePos(Event8,X+10,Y+10,Z+1, 0.0);
SetVehiclePos(Event9,X+10,Y+15,Z+1, 0.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "*Admin %s, je teleportirao grupu event vozila do sebe (rotacija: 2)",sendername);
    SendAdminMessage(COLOR_YELLOW, string);
       }
   else
   {
  SendClientMessage(playerid,COLOR_GRAD1,"{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC} Admini samo!");
   }
        return 1;
    }
if(strcmp(cmd, "/ekazi", true) == 0 || strcmp(cmd, "/e", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 2)
{

SendClientMessage(playerid, COLOR_ORANGE, "Koristite: {FFFFFF}/Ekazi [Event Kazi]");
return 1;
}
printf("[Event]%s: %s!!", sendername, result);
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1)
format(string, sizeof(string), "{6699FF}Event | %s kaze:(( %s ))", sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 2)
ProxDetector(100.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

N0NE

//---------------------Vozila(EVENT) Systemi----------------------------------------------------
   CMD:ekreiraj(playerid, params[])
{
   
       new color1;
        new color2;
new car;
if (PlayerInfo[playerid][pAdmin] >= 2)
   {
        if(sscanf(params, "iii", car, color1, color2)) return SCM(playerid, -1, "{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC}/veh [id_vozila] [boja1] [boja2]!");
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   ID vozila mora biti izmedu 400 ili 611 !"); return 1; }
    if(color1 < -1 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
    if(color2 < -1 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
        Event1 = CreateVehicle(car, X,Y+5,Z+1, 0.0, color1, color2, 60000);
        Event2 = CreateVehicle(car, X,Y+10,Z+1, 0.0, color1, color2, 60000);
        Event3 = CreateVehicle(car, X,Y+15,Z+1, 0.0, color1, color2, 60000);
        Event4 = CreateVehicle(car, X+5,Y+5,Z+1, 0.0, color1, color2, 60000);
        Event5 = CreateVehicle(car, X+5,Y+15,Z+1, 0.0, color1, color2, 60000);
        Event6 = CreateVehicle(car, X+5,Y+10,Z+1, 0.0, color1, color2, 60000);
        Event7 = CreateVehicle(car, X+10,Y+5,Z+1, 0.0, color1, color2, 60000);
        Event8 = CreateVehicle(car, X+10,Y+10,Z+1, 0.0, color1, color2, 60000);
        Event9 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "*Admin %s, je kreirao grupu event vozila!",sendername);
            SendAdminMessage(COLOR_YELLOW, string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Je Kreirao Grupu Event Vozila (Boja 1: %d | Boja 2: %d)",d,m,y,h,mi,s,sendername,color1,color2);
}
return 1;
}
    CMD:eunisti(playerid, params[])
{
       if (PlayerInfo[playerid][pAdmin] >= 2)
   {
       DestroyVehicle(Event1);
       DestroyVehicle(Event2);
       DestroyVehicle(Event3);
       DestroyVehicle(Event4);
       DestroyVehicle(Event5);
       DestroyVehicle(Event6);
       DestroyVehicle(Event7);
       DestroyVehicle(Event8);
       DestroyVehicle(Event9);
       GetPlayerName(playerid, sendername, sizeof(sendername));
   format(string, 256, "*Admin %s, je unistio grupu event vozila!",sendername);
       SendAdminMessage(COLOR_YELLOW, string);
       }
   else
   {
  SendClientMessage(playerid,COLOR_GRAD1,"{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC} Admini samo!");
   }
        return 1;
    }
    CMD:eport(playerid, params[])
{
       if (PlayerInfo[playerid][pAdmin] >= 2)
   {
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
SetVehiclePos(Event1,X,Y+5,Z+1, 0.0);
SetVehiclePos(Event2,X,Y+10,Z+1, 0.0);
SetVehiclePos(Event3,X,Y+15,Z+1, 0.0);
SetVehiclePos(Event4,X+5,Y+5,Z+1, 0.0);
SetVehiclePos(Event5,X+5,Y+15,Z+1, 0.0);
SetVehiclePos(Event6,X+5,Y+10,Z+1, 0.0);
SetVehiclePos(Event7,X+10,Y+5,Z+1, 0.0);
SetVehiclePos(Event8,X+10,Y+10,Z+1, 0.0);
SetVehiclePos(Event9,X+10,Y+15,Z+1, 0.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "*Admin %s, je teleportirao grupu event vozila do sebe (rotacija: 2)",sendername);
    SendAdminMessage(COLOR_YELLOW, string);
       }
   else
   {
  SendClientMessage(playerid,COLOR_GRAD1,"{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC} Admini samo!");
   }
        return 1;
    }
CMD:ekazi(playerid, params[])
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new result[64];
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 2)
{
if(sscanf(params, "s",result )) return SendClientMessage(playerid, Crvena, "{00CCFF}{00CCFF}Koristenje:{FFFF00} /ekazi [tekst] "); printf("[Event]%s: %s!!", sendername, result);
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1)
format(string, sizeof(string), "{6699FF}Event | %s kaze:(( %s ))", sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 2)
ProxDetector(100.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
}
return 1;
}

dobijem ove errore/warninge:



C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26303) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26303) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26303) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26304) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26314) : error 017: undefined symbol "sendername"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26314) : error 017: undefined symbol "sendername"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26314) : error 029: invalid expression, assumed zero
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26314) : fatal error 107: too many error messages on one line


Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.


evo linije:

26303 -          new Float:X,Float:Y,Float:Z;
26304 - GetPlayerPos(playerid, X,Y,Z);
26305 -  Event1 = CreateVehicle(car, X,Y+5,Z+1, 0.0, color1, color2, 60000);
26306 -           Event2 = CreateVehicle(car, X,Y+10,Z+1, 0.0, color1, color2, 60000);
26307 -          Event3 = CreateVehicle(car, X,Y+15,Z+1, 0.0, color1, color2, 60000);
26308 -           Event4 = CreateVehicle(car, X+5,Y+5,Z+1, 0.0, color1, color2, 60000);
26309 -           Event5 = CreateVehicle(car, X+5,Y+15,Z+1, 0.0, color1, color2, 60000);
26310 -           Event6 = CreateVehicle(car, X+5,Y+10,Z+1, 0.0, color1, color2, 60000);
26311 -           Event7 = CreateVehicle(car, X+10,Y+5,Z+1, 0.0, color1, color2, 60000);
26312 -           Event8 = CreateVehicle(car, X+10,Y+10,Z+1, 0.0, color1, color2, 60000);
26313 -           Event9 = CreateVehicle(car, X+10,Y+15,Z+1, 0.0, color1, color2, 60000);
26314 -         GetPlayerName(playerid, sendername, sizeof(sendername));
Poslednja Izmena: Oktobar 16, 2011, 20:04:16 POSLE PODNE od _M2_

N0NE

izbrisi onu komandu ekreiraj i stavi ovu

CMD:ekreiraj(playerid, params[])
{
   
       new color1;
        new color2;
new car;
new sendername[MAX_PLAYER_NAME];
if (PlayerInfo[playerid][pAdmin] >= 2)
   {
        if(sscanf(params, "iii", car, color1, color2)) return SCM(playerid, -1, "{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC}/veh [id_vozila] [boja1] [boja2]!");
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   ID vozila mora biti izmedu 400 ili 611 !"); return 1; }
    if(color1 < -1 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
    if(color2 < -1 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
new Float:aX,Float:aY,Float:aZ;
GetPlayerPos(playerid, aX,aY,aZ);
        Event1 = CreateVehicle(car, aX,aY+5,aZ+1, 0.0, color1, color2, 60000);
        Event2 = CreateVehicle(car, aX,aY+10,aZ+1, 0.0, color1, color2, 60000);
        Event3 = CreateVehicle(car, aX,aY+15,aZ+1, 0.0, color1, color2, 60000);
        Event4 = CreateVehicle(car, aX+5,aY+5,aZ+1, 0.0, color1, color2, 60000);
        Event5 = CreateVehicle(car, aX+5,aY+15,aZ+1, 0.0, color1, color2, 60000);
        Event6 = CreateVehicle(car, aX+5,aY+10,aZ+1, 0.0, color1, color2, 60000);
        Event7 = CreateVehicle(car, aX+10,aY+5,aZ+1, 0.0, color1, color2, 60000);
        Event8 = CreateVehicle(car, aX+10,aY+10,aZ+1, 0.0, color1, color2, 60000);
        Event9 = CreateVehicle(car,aX+10,aY+15,aZ+1, 0.0, color1, color2, 60000);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "*Admin %s, je kreirao grupu event vozila!",sendername);
            SendAdminMessage(COLOR_YELLOW, string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Je Kreirao Grupu Event Vozila (Boja 1: %d | Boja 2: %d)",d,m,y,h,mi,s,sendername,color1,color2);
}
return 1;
}


i u sve komande ubaci

new sendername[MAX_PLAYER_NAME];

sefe ubacio sam komandu i dobijem ove errore :)

evo ih



C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26316) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26317) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 029: invalid expression, assumed zero
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


Redovi:


26316 - format(string, 256, "*Admin %s, je kreirao grupu event vozila!",sendername);
26317 - SendAdminMessage(COLOR_YELLOW, string);
26322 -format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Je Kreirao Grupu Event Vozila (Boja 1: %d | Boja 2: %d)",d,m,y,h,mi,s,sendername,color1,color2);

ae pls jos mi to rijesi :)


dragan12

Citat: _M2_ poslato Oktobar 16, 2011, 20:46:54 POSLE PODNE
sefe ubacio sam komandu i dobijem ove errore :)

evo ih



C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26316) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26317) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 029: invalid expression, assumed zero
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


Redovi:


26316 - format(string, 256, "*Admin %s, je kreirao grupu event vozila!",sendername);
26317 - SendAdminMessage(COLOR_YELLOW, string);
26322 -format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Je Kreirao Grupu Event Vozila (Boja 1: %d | Boja 2: %d)",d,m,y,h,mi,s,sendername,color1,color2);

ae pls jos mi to rijesi :)


new string[128]; - Nije ti string definisan dodaj to

Citat: [BD]Gagi poslato Oktobar 16, 2011, 20:52:30 POSLE PODNE
Citat: _M2_ poslato Oktobar 16, 2011, 20:46:54 POSLE PODNE
sefe ubacio sam komandu i dobijem ove errore :)

evo ih



C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26316) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26317) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 017: undefined symbol "string"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : error 029: invalid expression, assumed zero
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26322) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


Redovi:


26316 - format(string, 256, "*Admin %s, je kreirao grupu event vozila!",sendername);
26317 - SendAdminMessage(COLOR_YELLOW, string);
26322 -format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Je Kreirao Grupu Event Vozila (Boja 1: %d | Boja 2: %d)",d,m,y,h,mi,s,sendername,color1,color2);

ae pls jos mi to rijesi :)


new string[128]; - Nije ti string definisan dodaj to

opet mi dodu ovi errori:

C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26303) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26303) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26303) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26304) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26305) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26306) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26307) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26308) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26309) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26310) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26311) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26312) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26313) : warning 213: tag mismatch
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26314) : error 017: undefined symbol "sendername"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26314) : error 017: undefined symbol "sendername"
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26314) : error 029: invalid expression, assumed zero
C:\DOCUME~1\komp\Desktop\mojedit\GAMEMO~1\RLRP.pwn(26314) : fatal error 107: too many error messages on one line

N0NE

nisi kopirao komandu koju sam ti send

Citat: [AG] n0nE poslato Oktobar 16, 2011, 21:24:22 POSLE PODNE
nisi kopirao komandu koju sam ti send

ubacio sam tu komandu sto si mi dao... ali dolaze errori..


jel mi mozes to ubacit u neku FS pa da ubacim kao FS na server

N0NE

omg uradicu ti komande pa ih copy paste


N0NE

//---------------------Vozila(EVENT) Systemi----------------------------------------------------
   CMD:ekreiraj(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
       new color1;
        new color2;
new car;
if (PlayerInfo[playerid][pAdmin] >= 2)
   {
        if(sscanf(params, "iii", car, color1, color2)) return SCM(playerid, -1, "{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC}/veh [id_vozila] [boja1] [boja2]!");
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   ID vozila mora biti izmedu 400 ili 611 !"); return 1; }
    if(color1 < -1 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
    if(color2 < -1 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Broj boje mora biti izmedu 0 ili 126 !"); return 1; }
new Float:A,Float:B,Float:C;
GetPlayerPos(playerid, A,B,C);
        Event1 = CreateVehicle(car, A,B+5,C+1, 0.0, color1, color2, 60000);
        Event2 = CreateVehicle(car, A,B+10,C+1, 0.0, color1, color2, 60000);
        Event3 = CreateVehicle(car, A,B+15,C+1, 0.0, color1, color2, 60000);
        Event4 = CreateVehicle(car, A+5,B+5,C+1, 0.0, color1, color2, 60000);
        Event5 = CreateVehicle(car, A+5,B+15,C+1, 0.0, color1, color2, 60000);
        Event6 = CreateVehicle(car, A+5,B+10,C+1, 0.0, color1, color2, 60000);
        Event7 = CreateVehicle(car, A+10,B+5,C+1, 0.0, color1, color2, 60000);
        Event8 = CreateVehicle(car, A+10,B+10,C+1, 0.0, color1, color2, 60000);
        Event9 = CreateVehicle(car, A+10,B+15,C+1, 0.0, color1, color2, 60000);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "*Admin %s, je kreirao grupu event vozila!",sendername);
            SendAdminMessage(COLOR_YELLOW, string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Je Kreirao Grupu Event Vozila (Boja 1: %d | Boja 2: %d)",d,m,y,h,mi,s,sendername,color1,color2);
}
return 1;
}
    CMD:eunisti(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
       if (PlayerInfo[playerid][pAdmin] >= 2)
   {
       DestroyVehicle(Event1);
       DestroyVehicle(Event2);
       DestroyVehicle(Event3);
       DestroyVehicle(Event4);
       DestroyVehicle(Event5);
       DestroyVehicle(Event6);
       DestroyVehicle(Event7);
       DestroyVehicle(Event8);
       DestroyVehicle(Event9);
       GetPlayerName(playerid, sendername, sizeof(sendername));
   format(string, 256, "*Admin %s, je unistio grupu event vozila!",sendername);
       SendAdminMessage(COLOR_YELLOW, string);
       }
   else
   {
  SendClientMessage(playerid,COLOR_GRAD1,"{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC} Admini samo!");
   }
        return 1;
    }
    CMD:eport(playerid, params[])
{
       if (PlayerInfo[playerid][pAdmin] >= 2)
   {
   new string[128];
new sendername[MAX_PLAYER_NAME];
new Float:A,Float:B,Float:C;
GetPlayerPos(playerid, A,Y,Z);
SetVehiclePos(Event1,A,B+5,C+1, 0.0);
SetVehiclePos(Event2,A,B+10,C+1, 0.0);
SetVehiclePos(Event3,A,B+15,C+1, 0.0);
SetVehiclePos(Event4,A+5,B+5,C+1, 0.0);
SetVehiclePos(Event5,A+5,B+15,C+1, 0.0);
SetVehiclePos(Event6,A+5,B+10,C+1, 0.0);
SetVehiclePos(Event7,A+10,B+5,C+1, 0.0);
SetVehiclePos(Event8,A+10,B+10,C+1, 0.0);
SetVehiclePos(Event9,A+10,B+15,C+1, 0.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "*Admin %s, je teleportirao grupu event vozila do sebe (rotacija: 2)",sendername);
    SendAdminMessage(COLOR_YELLOW, string);
       }
   else
   {
  SendClientMessage(playerid,COLOR_GRAD1,"{FFFFFF}[{F81414}AntiCS{FFFFFF}]{CCCCCC} Admini samo!");
   }
        return 1;
    }
CMD:ekazi(playerid, params[])
{

new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new result[64];
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 2)
{
if(sscanf(params, "s",result )) return SendClientMessage(playerid, Crvena, "{00CCFF}{00CCFF}Koristenje:{FFFF00} /ekazi [tekst] "); printf("[Event]%s: %s!!", sendername, result);
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1)
format(string, sizeof(string), "{6699FF}Event | %s kaze:(( %s ))", sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 2)
ProxDetector(100.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
}
return 1;
}

ovaj error mi samo dode i oko 10-at warninga:

error:

error 035: argument type mismatch (argument 3)


red:

GetPlayerPos(playerid, A,Y,Z);

Kod (none) [Izaberi]
new Float:A,Float:B,Float:C;
GetPlayerPos(playerid, A,Y,Z);


Šta ti tu nije jasno ? Samo izmjeniš A,Y,Z u A,B,C
Poslednja Izmena: Oktobar 16, 2011, 21:48:57 POSLE PODNE od Lemonade Mouth
www.falloutboyrock.com
Listening since 2004 and never going to stop.
----------------------------------------------------------