Skripta koju koristim:FactionGame
Opis problema: imam problem sa skriptom prije 2 dana mi nije ni jedan error izbacilo a nisam nista ubacio i ja sada udjem kad ono ima 7 errora evo koji su
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(15085) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(15100) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(23076) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(23114) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(23152) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(24493) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(26344) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\BalkanCountry\BalkanCountry\BalkanCountry\gamemodes\FactionGame.pwn(52009) : error 021: symbol already defined: "NameTimer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
daj nam linije errora
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' ')) [color=red]ovo je prvi error[/color]
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
[color=red]ovo je drugi [/color]
else if(strcmp(x_nr,"lock1",true) == 0)
{
new keycar = PlayerInfo[playerid][pPcarkey];
if(keycar != 999)
{
new locked[128];
locked = strtok(cmdtext, idx);
if(CarInfo[keycar][cLock] == 1)
{ [color=red]ovo je treci error i imaju jos 2 ovakva ista[/color]
foreach (Player, i)
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
format(string, sizeof(string), "~w~Vozilo~n~~g~Otkljucano");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar][cLock] = 0;
OnPropUpdate();
return 1;
}
if(strcmp(cmd,"/creategun",true)==0 || strcmp(cmd,"/napravioruzije",true)==0) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Morate se prvo prijaviti !");
return 1;
}
if(PlayerInfo[playerid][pJob] != 23)
{
SendClientMessage(playerid, COLOR_GREY, " Niste proizvodjac oruzija. ");
return 1;
}
new x_weapon[128];
x_weapon = strtok(cmdtext, idx);
if(!strlen(x_weapon))
{ [color=red]ovo je peti error[/color]
SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /napravioruzije [ime oruzija]");
SendClientMessage(playerid, COLOR_GREY, "Oruzije: noz(25) palica(25) sdpistolj(100) dezert(200)");
SendClientMessage(playerid, COLOR_GREY, "Oruzije: hekler(200) pomparica(200) kalas(500) m4(500) puska(500) snajper(1500)");
SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
return 1;
}
public NameTimer()
{
foreach (Player, i)
{ [color=red]i ovo je 6 error [/color]
foreach (Player, q)
{
new Float:p1x;
new Float:p1y;
new Float:p1z;
new Float:p2x;
new Float:p2y;
new Float:p2z;
if(IsPlayerConnected(i) && IsPlayerConnected(q))
{
GetPlayerPos(i,p1x,p1y,p1z);
GetPlayerPos(q,p2x,p2y,p2z);
if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
{
if(PlayerInfo[q][pMaskuse] != 1)
{
ShowPlayerNameTagForPlayer(i,q,1);
}
}
else
{
ShowPlayerNameTagForPlayer(i,q,0);
}
}
}
}
}
a ima jos jedan warning to i ne trrebam uredjivat
NameTimer (http://balkan-samp.com/forum/index.php?action=search2)
Za ostalo daj nam linije.
uredu je sve napravio samm