Skripta koju koristim: LA:RP
Detaljan opis problema: Kad pokusam Compile pokaze mi ovaj jedan error 021: symbol already defined: "NameTimer"
Dio skripte:
public NameTimer()
{
for(new i = 0;i < MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
for(new q = 0;q < MAX_PLAYERS;q++)
{
if(IsPlayerConnected(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);
}
}
}
}
}
}
}
public CustomPickups()
{
new Float😮ldposx, Float😮ldposy, Float😮ldposz;
new string;
NameTimer ();
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(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~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~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~w~~n~Owner : %s~n~Extortion by : %s~n~Entrance Fee : ~g~$%d ~n~~w~to enter type /enter",SBizzInfo,SBizzInfo,SBizzInfo,SBizzInfo);
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~This Business is for sale~n~Cost: ~g~$%d ~w~Level : %d ~n~to buy this Business type /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), "~w~This House is owned by~n~%s~n~Level : %d",HouseInfo,HouseInfo);
}
else
{
format(string, sizeof(string), "~w~This House is owned by~n~%s~n~Rent: $%d Level : %d~n~Type /rentroom to rent a room",HouseInfo,HouseInfo,HouseInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
else
{
format(string, sizeof(string), "~w~This House is for sale~n~Discription: %s ~n~Cost: ~g~$%d~n~~w~ Level : %d~n~to buy this house type /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~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~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~w~~n~Owner : %s~n~Extortion by : %s~n~Entrance Fee : ~g~$%d ~n~~w~to enter type /enter",BizzInfo,BizzInfo,BizzInfo,BizzInfo);
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~This Business is for sale~n~Cost: ~g~$%d ~w~Level : %d ~n~to buy this Business type /buybiz",BizzInfo,BizzInfo,BizzInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
}//custompickups end
if (PlayerToPoint(2.0, i, 2029.5945,-1404.6426,17.2512))
{// Hospital near speedway
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if (PlayerToPoint(1.0, i, 349.5560,161.6693,1019.9912))
{// All Saints hospital
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if (PlayerToPoint(2.0, i, 1043.4530,-1028.0344,32.1016))
{//Fernandez tuning start
GameTextForPlayer(i, "~w~This mod shop belongs to Charles Luciano ~n~~r~ If you want to access it ~n~~y~ /call 961415", 5000, 3);
}
else if (PlayerToPoint(2.0, i, 1488.6949,-1721.7136,8.2067))
{
GameTextForPlayer(i, "~w~Black ~r~Market", 5000, 3);
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,359.5408,206.7693,1008.382😎)
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Detective~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,347.7374,193.7241,1014.1875))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1215.1304,-11.8431,1000.9219))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Whore~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1109.3318,-1796.3042,16.593😎)
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Jacker~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1793.02,-1296.56,13.44))
{
if(PlayerInfo == 9 || PlayerInfo == 9) { GameTextForPlayer(i, "~w~Type ~r~/paper ~w~to create a newspaper",5000,3); }
else if(PlayerInfo == 15) { GameTextForPlayer(i, "~w~Type ~r~/papers ~w~to see all the made newspapers",5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2077.52,-2013.56,13.54))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Mechanic~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2226.1716,-1718.1792,13.5165))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Bodyguard~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,594.2437,-1249.4027,18.2232))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Dealer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,766.0804,14.5133,1000.7004))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Boxer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1154.2208,-1770.8203,16.5992))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Bus Driver~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2439.7710,-2120.9285,13.5469))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Trucker~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2101.7620,-1812.5922,13.5547))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Pizza Boy~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-382.6660,-1426.5121,26.2410))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Farmer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1784.58,-1297.52,13.37))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Paper Boy~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,213.8549,-230.5761,1.7786))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Materials smuggler~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2146.3523,-2267.7498,14.2344))
{
GameTextForPlayer(i, "~y~You can get ~r~Materials~y~ from your packages here ~n~~w~Type /materials deliver", 5000, 3);
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2072.5486,-1582.8029,13.4741))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Drugs Dealer~y~~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1611.5129,-1893.6997,13.5469))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Street Sweeper~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (PlayerToPoint(2.0, i,379.1396,-114.2661,1001.4922))
{// Pizza Pickup
if (PlayerInfo != 17)
{
SendClientMessage(i, COLOR_GREY, "You are not a pizza stack worker");
return 1;
}
if (sPizza != 1)
{
SendClientMessage(i, COLOR_WHITE, "You have picked a cooked pizza, wait for orders");
sPizza = 1;
}
}
else if (PlayerToPoint(2.0, i,1174.9100,-1365.7330,13.9876))
{
if(PlayerInfo == 4 || PlayerInfo == 4) { SetTimerEx("elevator1", 1000, false, "i", i); }
else { GameTextForPlayer(i, "~r~You can not use an elevator", 5000, 3); }
}
else if (PlayerToPoint(2.0, i,1174.9591,-1369.8761,23.9736))
{
if(PlayerInfo == 4 || PlayerInfo == 4) { SetTimerEx("elevator2", 1000, false, "i", i); }
else { GameTextForPlayer(i, "~r~You can not use an elevator", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1381.0413,-1088.8511,27.3906))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~Use /mission to take on a Mission", 5000, 3);
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1600.8793,-2333.3535,13.5390))
{
GameTextForPlayer(i, "~y~You found a guide book~n~ Type ~r~/guide ~y~to read it", 5000, 3);
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,359.6820,207.0294,1008.382😎)
{
GameTextForPlayer(i, "~w~Advertisment business~n~Owner: ABC Studio~n~Post your ~g~/ad~w~ here", 5000, 3);
}
else if (PlayerToPoint(3.0, i,-38.8664,56.3031,3.1172))
{
if(PlayerInfo == 6 || PlayerInfo == 6 || PlayerInfo == 19)
{
format(string, sizeof(string), "~r~Drugs ammount: %d", drugsys);
GameTextForPlayer(i, string, 5000, 3);
}
else if(PlayerInfo == 16 || PlayerInfo == 16 || PlayerInfo == 20)
{
format(string, sizeof(string), "~w~Drugs Farm~n~Farm Owner: La Famiglia Sinatra~n~Drugs ammount:~r~ %d~n~~w~You can /smuggledrugs here", drugsys);
GameTextForPlayer(i, string, 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only!", 5000, 3);
}
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2022.1492,-1108.7837,26.2031))
{
if(PlayerInfo == 16 || PlayerInfo == 16)
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become ~r~Drugs Smuggler~n~~w~Type /takejob if you wish to become one", 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only", 5000, 3);
}
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i,242.7591,66.4315,1003.6406))
{
if(PlayerInfo == 1 || PlayerInfo == 1)
{
GameTextForPlayer(i, "~g~Police Department elevator~n~~w~Type ~r~/pdup ~w~to go up~n~Type ~r~/pddown ~w~to go down", 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only!", 5000, 3);
}
}
else if (GetPlayerState(i) == 2 && PlayerToPoint(3, i,2073.2979,-1831.1228,13.5469) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,1024.9756,-1030.7930,32.0257) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,488.3819,-1733.0563,11.1752) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,719.8940,-464.8272,16.3359))
{
format(string, sizeof(string), "~y~Pay ~r~& ~g~Spray~w~~n~Owner : %s~n~Entrance Fee : ~g~$%d ~w~~n~to enter type /enter",SBizzInfo,SBizzInfo);
GameTextForPlayer(i, string, 5000, 3);
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(1.5, i, 248.4994,-33.1366,1.5781))
{
if(PlayerInfo == 22)
{
GameTextForPlayer(i, "~w~Materials factory~n~You can ~r~/smugglemats ~w~here", 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only !", 5000, 3);
}
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i, 2230.3579,-2286.2107,14.3751))
{
if(PlayerInfo == 22)
{
format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d", matssys);
GameTextForPlayer(i, string, 5000, 3);
}
else if(PlayerInfo == 23)
{
format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d ~n~~w~You can ~g~/buymats ~w~here", matssys);
GameTextForPlayer(i, string, 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only !", 5000, 3);
}
}
else if(PlayerToPoint(2.0, i,1073.0619,-344.5148,73.9922))
{
if(OrderReady > 0)
{
switch (OrderReady)
{
case 1:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 5000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 2:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 6000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 3:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 6000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 4:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 5:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 6:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8500);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 7:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8500);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
}
OrderReady = 0;
}
}//Hitman delivery stuff
else if(PlayerOnMission > 0 && PlayMission == 0)
{
if(MissionCheckpoint == 1 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 2;
}
else if(MissionCheckpoint == 2 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 3;
}
else if(MissionCheckpoint == 3 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 4;
}
else if(MissionCheckpoint == 4 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 5;
}
else if(MissionCheckpoint == 5 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 6;
}
else if(MissionCheckpoint == 6 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "..:: Mission Passed : %s | Reward received: $%d ::..", PlayMission, PlayMission);
SendClientMessage(i, COLOR_GREEN, string);
SafeGivePlayerMoney(i, PlayMission);
PlayerInfo = PlayerOnMission;
MissionCheckpoint = 0;
PlayerOnMission = 0;
}
}
}
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): Ne treba, ja mislim da je dovoljno ovo. HELP pliz
Zaključano
[Pomoc] Error 021: symbol already defined: "NameTimer"
2,561
pregleda
11
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
pre 11 godina
C:\DOCUME~1\NIKOLI~1\Desktop\GAMEMO~1\OSTALI~1\LA-RP\GAMEMO~1\larp.pwn(4087😎 : error 017: undefined symbol "NameTimer1"
C:\DOCUME~1\NIKOLI~1\Desktop\GAMEMO~1\OSTALI~1\LA-RP\GAMEMO~1\larp.pwn(43810) : error 021: symbol already defined: "NameTimer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Sad mi ove errore izbacuje.. mozes mi rec kakvo ime da stavim jednom od tih? Probao sam i NameTimer (bez jedinice) i isto, 2 errora ista.
C:\DOCUME~1\NIKOLI~1\Desktop\GAMEMO~1\OSTALI~1\LA-RP\GAMEMO~1\larp.pwn(43810) : error 021: symbol already defined: "NameTimer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Sad mi ove errore izbacuje.. mozes mi rec kakvo ime da stavim jednom od tih? Probao sam i NameTimer (bez jedinice) i isto, 2 errora ista.
pre 11 godina
probaj ovako
i na vrh skripte dodas
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new string;
NameTimer1 ();
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(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~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~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~w~~n~Owner : %s~n~Extortion by : %s~n~Entrance Fee : ~g~$%d ~n~~w~to enter type /enter",SBizzInfo,SBizzInfo,SBizzInfo,SBizzInfo);
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~This Business is for sale~n~Cost: ~g~$%d ~w~Level : %d ~n~to buy this Business type /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), "~w~This House is owned by~n~%s~n~Level : %d",HouseInfo,HouseInfo);
}
else
{
format(string, sizeof(string), "~w~This House is owned by~n~%s~n~Rent: $%d Level : %d~n~Type /rentroom to rent a room",HouseInfo,HouseInfo,HouseInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
else
{
format(string, sizeof(string), "~w~This House is for sale~n~Discription: %s ~n~Cost: ~g~$%d~n~~w~ Level : %d~n~to buy this house type /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~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~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~w~~n~Owner : %s~n~Extortion by : %s~n~Entrance Fee : ~g~$%d ~n~~w~to enter type /enter",BizzInfo,BizzInfo,BizzInfo,BizzInfo);
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~This Business is for sale~n~Cost: ~g~$%d ~w~Level : %d ~n~to buy this Business type /buybiz",BizzInfo,BizzInfo,BizzInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
}//custompickups end
if (PlayerToPoint(2.0, i, 2029.5945,-1404.6426,17.2512))
{// Hospital near speedway
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if (PlayerToPoint(1.0, i, 349.5560,161.6693,1019.9912))
{// All Saints hospital
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if (PlayerToPoint(2.0, i, 1043.4530,-1028.0344,32.1016))
{//Fernandez tuning start
GameTextForPlayer(i, "~w~This mod shop belongs to Charles Luciano ~n~~r~ If you want to access it ~n~~y~ /call 961415", 5000, 3);
}
else if (PlayerToPoint(2.0, i, 1488.6949,-1721.7136,8.2067))
{
GameTextForPlayer(i, "~w~Black ~r~Market", 5000, 3);
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,359.5408,206.7693,1008.3828))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Detective~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,347.7374,193.7241,1014.1875))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1215.1304,-11.8431,1000.9219))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Whore~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1109.3318,-1796.3042,16.5938))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Jacker~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1793.02,-1296.56,13.44))
{
if(PlayerInfo == 9 || PlayerInfo == 9) { GameTextForPlayer(i, "~w~Type ~r~/paper ~w~to create a newspaper",5000,3); }
else if(PlayerInfo == 15) { GameTextForPlayer(i, "~w~Type ~r~/papers ~w~to see all the made newspapers",5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2077.52,-2013.56,13.54))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Mechanic~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2226.1716,-1718.1792,13.5165))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Bodyguard~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,594.2437,-1249.4027,18.2232))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Dealer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,766.0804,14.5133,1000.7004))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Boxer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1154.2208,-1770.8203,16.5992))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Bus Driver~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2439.7710,-2120.9285,13.5469))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Trucker~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2101.7620,-1812.5922,13.5547))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Pizza Boy~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-382.6660,-1426.5121,26.2410))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Farmer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1784.58,-1297.52,13.37))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Paper Boy~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,213.8549,-230.5761,1.7786))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Materials smuggler~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2146.3523,-2267.7498,14.2344))
{
GameTextForPlayer(i, "~y~You can get ~r~Materials~y~ from your packages here ~n~~w~Type /materials deliver", 5000, 3);
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2072.5486,-1582.8029,13.4741))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Drugs Dealer~y~~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1611.5129,-1893.6997,13.5469))
{
if(PlayerInfo > 0 || PlayerInfo > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Street Sweeper~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (PlayerToPoint(2.0, i,379.1396,-114.2661,1001.4922))
{// Pizza Pickup
if (PlayerInfo != 17)
{
SendClientMessage(i, COLOR_GREY, "You are not a pizza stack worker");
return 1;
}
if (sPizza != 1)
{
SendClientMessage(i, COLOR_WHITE, "You have picked a cooked pizza, wait for orders");
sPizza = 1;
}
}
else if (PlayerToPoint(2.0, i,1174.9100,-1365.7330,13.9876))
{
if(PlayerInfo == 4 || PlayerInfo == 4) { SetTimerEx("elevator1", 1000, false, "i", i); }
else { GameTextForPlayer(i, "~r~You can not use an elevator", 5000, 3); }
}
else if (PlayerToPoint(2.0, i,1174.9591,-1369.8761,23.9736))
{
if(PlayerInfo == 4 || PlayerInfo == 4) { SetTimerEx("elevator2", 1000, false, "i", i); }
else { GameTextForPlayer(i, "~r~You can not use an elevator", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1381.0413,-1088.8511,27.3906))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~Use /mission to take on a Mission", 5000, 3);
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1600.8793,-2333.3535,13.5390))
{
GameTextForPlayer(i, "~y~You found a guide book~n~ Type ~r~/guide ~y~to read it", 5000, 3);
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,359.6820,207.0294,1008.3828))
{
GameTextForPlayer(i, "~w~Advertisment business~n~Owner: ABC Studio~n~Post your ~g~/ad~w~ here", 5000, 3);
}
else if (PlayerToPoint(3.0, i,-38.8664,56.3031,3.1172))
{
if(PlayerInfo == 6 || PlayerInfo == 6 || PlayerInfo == 19)
{
format(string, sizeof(string), "~r~Drugs ammount: %d", drugsys);
GameTextForPlayer(i, string, 5000, 3);
}
else if(PlayerInfo == 16 || PlayerInfo == 16 || PlayerInfo == 20)
{
format(string, sizeof(string), "~w~Drugs Farm~n~Farm Owner: La Famiglia Sinatra~n~Drugs ammount:~r~ %d~n~~w~You can /smuggledrugs here", drugsys);
GameTextForPlayer(i, string, 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only!", 5000, 3);
}
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2022.1492,-1108.7837,26.2031))
{
if(PlayerInfo == 16 || PlayerInfo == 16)
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become ~r~Drugs Smuggler~n~~w~Type /takejob if you wish to become one", 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only", 5000, 3);
}
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i,242.7591,66.4315,1003.6406))
{
if(PlayerInfo == 1 || PlayerInfo == 1)
{
GameTextForPlayer(i, "~g~Police Department elevator~n~~w~Type ~r~/pdup ~w~to go up~n~Type ~r~/pddown ~w~to go down", 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only!", 5000, 3);
}
}
else if (GetPlayerState(i) == 2 && PlayerToPoint(3, i,2073.2979,-1831.1228,13.5469) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,1024.9756,-1030.7930,32.0257) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,488.3819,-1733.0563,11.1752) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,719.8940,-464.8272,16.3359))
{
format(string, sizeof(string), "~y~Pay ~r~& ~g~Spray~w~~n~Owner : %s~n~Entrance Fee : ~g~$%d ~w~~n~to enter type /enter",SBizzInfo,SBizzInfo);
GameTextForPlayer(i, string, 5000, 3);
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(1.5, i, 248.4994,-33.1366,1.5781))
{
if(PlayerInfo == 22)
{
GameTextForPlayer(i, "~w~Materials factory~n~You can ~r~/smugglemats ~w~here", 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only !", 5000, 3);
}
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i, 2230.3579,-2286.2107,14.3751))
{
if(PlayerInfo == 22)
{
format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d", matssys);
GameTextForPlayer(i, string, 5000, 3);
}
else if(PlayerInfo == 23)
{
format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d ~n~~w~You can ~g~/buymats ~w~here", matssys);
GameTextForPlayer(i, string, 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only !", 5000, 3);
}
}
else if(PlayerToPoint(2.0, i,1073.0619,-344.5148,73.9922))
{
if(OrderReady > 0)
{
switch (OrderReady)
{
case 1:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 5000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 2:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 6000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 3:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 6000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 4:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 5:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 6:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8500);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 7:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8500);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
}
OrderReady = 0;
}
}//Hitman delivery stuff
else if(PlayerOnMission > 0 && PlayMission == 0)
{
if(MissionCheckpoint == 1 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 2;
}
else if(MissionCheckpoint == 2 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 3;
}
else if(MissionCheckpoint == 3 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 4;
}
else if(MissionCheckpoint == 4 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 5;
}
else if(MissionCheckpoint == 5 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
format(string, sizeof(string), "%s", PlayMission);
SendClientMessage(i, COLOR_YELLOW2, string);
MissionCheckpoint = 6;
}
else if(MissionCheckpoint == 6 && PlayerToPoint(10.0, i,PlayMission,PlayMission,PlayMission))
{
RingTone = 20;
format(string, sizeof(string), "%s", PlayMission);
GameTextForPlayer(i, string, 8000, 3);
format(string, sizeof(string), "..:: Mission Passed : %s | Reward received: $%d ::..", PlayMission, PlayMission);
SendClientMessage(i, COLOR_GREEN, string);
SafeGivePlayerMoney(i, PlayMission);
PlayerInfo = PlayerOnMission;
MissionCheckpoint = 0;
PlayerOnMission = 0;
}
}
}
}
return 1;
}i na vrh skripte dodas
new NameTimer1;
pre 11 godina
Ma popravio sam to ja.. obrisao sam zagrade "()" samo.. ali sad mi pokazuje ovaj error
(4087😎 : error 076: syntax error in the expression, or invalid function call tu je taj NameTimer bez (). Probat cu sad pobrisat ovo i ubacit to sto si mi ti napravio.
Edit: Nista, ali hvala sto si mi htio pomoci 😉
(4087😎 : error 076: syntax error in the expression, or invalid function call tu je taj NameTimer bez (). Probat cu sad pobrisat ovo i ubacit to sto si mi ti napravio.
Edit: Nista, ali hvala sto si mi htio pomoci 😉
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava