Detaljan opis problema:C:\Documents and Settings\user\My Documents\Downloads\f\Balkan live\blrp\blrp\gamemodes\blrp.pwn(5373😎 : error 021: symbol already defined: "NameTimer" pokusavao sam da resim sam na sve nacine ali nisam uspeo ako neko moze da mi pomogne da resim ovo
Dio skripte:
public NameTimer()
{
foreach (Player, i)
{
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 != 1)
{
ShowPlayerNameTagForPlayer(i,q,1);
}
}
else
{
ShowPlayerNameTagForPlayer(i,q,0);
}
}
}
}
}
to je gde pokazuje eror
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new string;
NameTimer();
foreach (Player, i)
{
GetPlayerPos(i, oldposx, oldposy, oldposz);
new tmpcar = GetPlayerVehicleID(i);
if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
{
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo, SBizzInfo, SBizzInfo))
{
format(string, sizeof(string), "~w~%s~n~~r~Produkta Potrebno~w~: %d~n~~y~Cena po Produktu: ~w~: $%d~n~~g~Novac: ~w~: $%d",SBizzInfo,(SBizzInfo-SBizzInfo),SBizzInfo,SBizzInfo);
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
if(PlayerToPoint(2.0, i, SBizzInfo, SBizzInfo, SBizzInfo))
{
if(SBizzInfo == 1)
{
format(string, sizeof(string), "~w~%s~g~~n~Vlasnik ~w~%s~n~Reket ima: %s~n~Cena ulaza: $%d~n~~y~(/enter)",SBizzInfo,SBizzInfo,SBizzInfo,SBizzInfo);
}
else
{
format(string, sizeof(string), "~g~Na Prodaju~n~~w~%s~n~~w~$%d~n~%d Level~n~~y~(/buybiz)",SBizzInfo,SBizzInfo,SBizzInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, i, HouseInfo, HouseInfo, HouseInfo))
{
if(HouseInfo == 1)
{
if(HouseInfo == 0)
{
format(string, sizeof(string), "~g~Vlasnik~n~~w~%s~n~%d Level",HouseInfo,HouseInfo);
}
else
{
format(string, sizeof(string), "~g~Vlasnik~n~~w~%s~n~Renta: $%d Level: %d~n~~y~(/rentroom)",HouseInfo,HouseInfo,HouseInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
else
{
format(string, sizeof(string), "~g~NA PRODAJU~n~~w~%s~n~$%d~n~%d Level~n~~y~(/buyhouse)",HouseInfo,HouseInfo,HouseInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo, BizzInfo, BizzInfo))
{
format(string, sizeof(string), "~w~%s~n~~r~Potrebno produkata~w~: %d~n~~y~Cena produkta: ~w~: $%d~n~~g~Novac: ~w~: $%d",BizzInfo,(BizzInfo-BizzInfo),BizzInfo,BizzInfo);
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
if(PlayerToPoint(2.0, i, BizzInfo, BizzInfo, BizzInfo))
{
if(BizzInfo == 1)
{
format(string, sizeof(string), "~w~%s~g~~n~Vlasnik ~w~%s~n~Reket ima: %s~n~Cena Ulaza: $%d ~n~~y~(/enter)",BizzInfo,BizzInfo,BizzInfo,BizzInfo);
}
else
{
format(string, sizeof(string), "~g~Na Prodaju~n~~w~%s~n~~w~$%d~n~%d Level~n~~y~(/buybiz)",BizzInfo,BizzInfo,BizzInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
ovde se jos pominje Name Timer
