[POMOC]Errori problem

Započeo WilliamS, Jun 27, 2013, 18:23:16 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moj edit
Detaljan opis problema:Uzeo sam sa jednog modda jednu komandu i dobio dosta errora i pola sam resio a ovih stala ne znam da resim pa moze pomoc evo errora dole a i komande.
Dio skripte:Erori C:\Users\Salipur\Desktop\TCDM\gamemodes\butdm.pwn(1145) : error 017: undefined symbol "CreatedCars"
C:\Users\Salipur\Desktop\TCDM\gamemodes\butdm.pwn(1145) : error 017: undefined symbol "CreatedCar"
C:\Users\Salipur\Desktop\TCDM\gamemodes\butdm.pwn(1145) : error 029: invalid expression, assumed zero
C:\Users\Salipur\Desktop\TCDM\gamemodes\butdm.pwn(1145) : fatal error 107: too many error messages on one line

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


4 Errors.
A
A evo i cele komande if(strcmp(cmd, "/veh", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] < 1)
{
    SendClientMessage(playerid, ORANGE, " (greska)  Niste ovlasceni da koristite ovu komandu!");
    return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "KORISCENJE: /veh [carid] [color1] [color2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "  (greska) ID vozila ne moze biti manji od 400 ili veci od 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "KORISCENJE: /veh [carid] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "  (greska) ID boje ne moze biti manji od 0 ili veci od 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "KORISCENJE: /veh [carid] [color1] [color2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "  (greska) ID boje ne moze biti manji od 0 ili veci od 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
CreatedCars[CreatedCar] = carid;
PutPlayerInVehicle(playerid, carid, 0);
CreatedCar ++;
format(string, sizeof(string), "   Vozilo %d spawnovano.", carid);
SendClientMessage(playerid, COLOR_GREY, 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 [KOMANDA] -> /veh",d,m,y,h,mi,s,sendername);
    CommandLog(string);
return 1;
}

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


Respect:ColdPlay,Artie,dnjl.

Jok kada bih znao koja je linija
probaj ovako:
if(strcmp(cmd, "/veh", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] < 1)
{
    SendClientMessage(playerid, ORANGE, " (greska)  Niste ovlasceni da koristite ovu komandu!");
    return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "KORISCENJE: /veh [carid] [color1] [color2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "  (greska) ID vozila ne moze biti manji od 400 ili veci od 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "KORISCENJE: /veh [carid] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "  (greska) ID boje ne moze biti manji od 0 ili veci od 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, ORANGE, "KORISCENJE: /veh [carid] [color1] [color2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "  (greska) ID boje ne moze biti manji od 0 ili veci od 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
// CreatedCars[CreatedCar] = carid;
PutPlayerInVehicle(playerid, carid, 0);
//CreatedCar ++;
format(string, sizeof(string), "   Vozilo %d spawnovano.", carid);
SendClientMessage(playerid, COLOR_GREY, 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 [KOMANDA] -> /veh",d,m,y,h,mi,s,sendername);
    CommandLog(string);*/
return 1;
}

Na vrh new CreatedCars[broj koliko hoces da kreiras vozila];
Pod OnGameModeInit // Kreiranje vozila cekiranje
for(new i = 0; i < sizeof(CreatedCars); i++)
{
    CreatedCars[i] = 0;
}

u skripti vec imas tu varijablu samo pod uncomment, proveravao sam, samo je nadji i otkrij