Skripta koju koristim: Explosion
Detaljan opis problema: Imam warning na destroycars komandi
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(65190) : warning 203: symbol is never used: "CreatedCars"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Dio skripte:
evo destroycars komanda
if(strcmp(cmd, "/destroycars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite tu komandu!");
return 1;
}
for(new i = 0; i < sizeof(CreatedCars); i++)
{
if(i != 0)
{
DestroyVehicle(i);
}
}
SendClientMessage(playerid, COLOR_GREY, " Sva stvorena vozila su unistena !");
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): -
symbol is never used: "CreatedCars"
sam ti tekst kaze da se taj simbol nigde ne koristi
a ovo
for(new i = 0; i < sizeof(CreatedCars); i++)
Pa samo tu i imas to CreateCars nesto ti nevalja to sa /destroycars skoro na svim gmovima koje skines ta CMD ne radi,ali evo vadim i osvnovnog GF-a pa ti posle prilagodi sebi
if(strcmp(cmd, "/destroycars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
return 1;
}
for(new i = 0; i < sizeof(CreatedCars); i++)
{
if(i != 0)
{
DestroyVehicle(i);
}
}
SendClientMessage(playerid, COLOR_GREY, " Created Vehicles destroyed !");
}
return 1;
}
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 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;
CreatedCar ++;
format(string, sizeof(string), " Vehicle %d spawned.", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}
Pod OnGameModeInit
// CreatedCars check
for(new i = 0; i < sizeof(CreatedCars); i++)
{
CreatedCars[i] = 0;
}
i na vrh skripte new CreatedCars[100];
ovo sam nasao u obicnom GFu ti sad probaj sebi prilagodi
Sve sam ubacio osim veh jer ju imam, a dosli su ovi errori
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(11606) : warning 215: expression has no effect
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(11606) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(11606) : error 017: undefined symbol "check"
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(11606 -- 11607) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
a ovo je veh MOJ
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 1340)
{SendClientMessage(playerid, COLOR_GRAD1, "Niste ovlasteni da koristite tu komandu!");return 1;}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /veh [id vozila] [boja1] [boja2]");return 1;}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " ID vozila ne moze biti ispod 400 ili preko 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /veh [id vozila] [boja1] [boja2]");return 1;}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 180) { SendClientMessage(playerid, COLOR_GREY, " ID Boje ne moze biti ispod 0 ili preko 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /veh [id vozila] [boja1] [boja2]");return 1;}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " ID Boje ne moze biti ispod 0 ili preko 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
// car system
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);
TogglePlayerControllable(playerid, 1);
PutPlayerInVehicle(playerid, carid, 0);
PutPlayerInVehicle(playerid, carid, 0);
format(string, sizeof(string), " Vozilo %d je stvoreno.", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}
A ovako da probas?
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 1340)
{SendClientMessage(playerid, COLOR_GRAD1, "Niste ovlasteni da koristite tu komandu!");return 1;}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /veh [id vozila] [boja1] [boja2]");return 1;}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " ID vozila ne moze biti ispod 400 ili preko 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /veh [id vozila] [boja1] [boja2]");return 1;}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 180) { SendClientMessage(playerid, COLOR_GREY, " ID Boje ne moze biti ispod 0 ili preko 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /veh [id vozila] [boja1] [boja2]");return 1;}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " ID Boje ne moze biti ispod 0 ili preko 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;
CreatedCar ++;
TogglePlayerControllable(playerid, 1);
PutPlayerInVehicle(playerid, carid, 0);
PutPlayerInVehicle(playerid, carid, 0);
format(string, sizeof(string), " Vozilo %d je stvoreno.", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}
Eto sta mi doslo poslije ubacene komande
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3385) : error 004: function "SafeJBC_GivePlayerMoney" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3410) : error 004: function "SafeJBC_GivePlayerMoney" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3933) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3937) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3948) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3960) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3964) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3968) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3972) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3976) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3980) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3984) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3988) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3992) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(3996) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4008) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4012) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4016) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4020) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4024) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4042) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4046) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4050) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4062) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4066) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marac.WIN7-PC\Desktop\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(4070) : error 004: function "PlayerToPoint" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.