NaturaL
-
Posts
34 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by NaturaL
-
-
Salut.Am o problema cu questu de craciun si anume ca cadourile(scuzati cacofonia) pot fi adunate doar in ordinea in care sunt puse locatiile lor in gm. De exemplu eu vreau sa iau Cadoul cu numarul 7, dar nu este posibil deoarece nu am luat primele cadouri dinaintea acestui numar. Am incercat sa scot eu niste lini de acolo care credeam ca duce la acest lucru dar degeaba..
Aici este codul cu locatiile cadourilor:
new QuestEventState = 1; // Quest #define QuestName "Christmas Quest" //Denumirea acestui eveniment. #define QuestSingleName "cadouri" //Cum se numesc acestea (x din x cadouri) new QuestObject = 19056; //Object pentru Pickup. new Float:QuestPositions[][4] = { {2071.8901,-948.7933,50.4882}, {1416.8466,-807.2762,85.1519}, {1214.0465,-985.5582,43.5543}, {1197.8796,-752.5742,92.3998}, {712.4207,-1549.6532,3.1352}, {587.8170,-1540.2173,15.5063}, {559.9663,-1358.9471,15.3194}, {728.8685,-1275.6370,17.7685}, {874.3939,-1165.2053,17.1586}, {1106.7720,-1239.0353,16.0369}, {1526.8868,-1380.4821,14.0890}, {1829.7864,-1816.7222,4.1388}, {307.1967,-1431.9117,23.7126}, {382.1430,-1881.9504,2.8321}, {986.1062,-2149.3225,13.3129}, {1177.4075,-2296.0149,22.7584}, {1381.4700,-2542.8628,17.4556}, {1802.2002,-2704.5098,13.9591}, {682.7130,-444.1653,16.4982}, {1930.7529,-1362.2373,16.2042} }; new QuestPickups[sizeof(QuestPositions)]; //pickup-ul. new Text3D: QuestText[sizeof(QuestPositions)]; //text-ul 3d.
Si aici se afla restul:
if(QuestEventState == 1) // xmas quest { new str[256]; if(PlayerInfo[playerid][pLastGift] == sizeof(QuestPositions) && PlayerInfo[playerid][pLastGift] == 999) return SCM(playerid, -1, "Ai gasit deja toate cadourile!"); if(pickupid == QuestPickups[PlayerInfo[playerid][pLastGift]]) { // PlayerInfo[playerid][pLastGift] ++; IncreasePlayerGift(playerid); if(PlayerInfo[playerid][pLastGift] != sizeof(QuestPositions)) { format(str,sizeof(str), "%d din %d %s gasite!", PlayerInfo[playerid][pLastGift], sizeof(QuestPositions), QuestSingleName); GameTextForPlayer(playerid, str, 3000, 3); } else { new name[MAX_PLAYERS], string[256]; format(str,sizeof(str), "Toate %s au fost gasite!", QuestSingleName); //Cadourile gasite, mesaj. + premiul. GameTextForPlayer(playerid, str, 3000, 3); GivePlayerCash(playerid, 2500000); Update(playerid, pCashx); PlayerInfo[playerid][pRespect] += 15; Update(playerid, pRespectx); PlayerInfo[playerid][pGold] += 2000; Update(playerid, pGoldx); PlayerInfo[playerid][pRob] += 20; Update(playerid, pRobx); PlayerInfo[playerid][pLastGift] = 999; SCM(playerid, COLOR_YELLOW, "Felicitari! Ai gasit toate cadourile."); SCM(playerid, COLOR_YELLOW, "Pentru asta staff-ul EvoSKILL te premiaza cu urmatoarele:"); SCM(playerid, COLOR_YELLOW, "2.500.000$, 15 Respect Points, 20 Rob Points si 2000 Gold. Sarbatori Fericite!"); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s a terminat quest-ul de craciun! Felicitari si Sarbatori fericite!", name); SendClientMessageToAll(-1, string); } } else { format(str,sizeof(str), "(%s) {FFFFFF}Ai gasit deja acest cadou. Cadouri gasite: %d/20.", QuestName, PlayerInfo[playerid][pLastGift]); //Nu e inima corecta. SCM(playerid, COLOR_LIGHTRED, str); } }
Nu astept o intreaga rezolvare, doar un mic start de unde sa incep. Multumesc anticipat!
-
Salut. Am urcat un gamemode pe host si imi tot arata "Unknown" in loc de denumirea gamemode-ului. Pe pc imi mergea, dar pe host nu vrea de nici o culoare.
Am incercat sa updatez plugins dar degeaba.. Am recompilat .pwn dar la fel degeaba..
Aici este server_log:
----------
Loaded log file: "server_log.txt".
----------SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team[21:52:41] filterscripts = "" (string)
[21:52:41]
[21:52:41] Server Plugins
[21:52:41] --------------
[21:52:41] Loading plugin: crashdetect.so
[21:52:41] CrashDetect v4.15.1 is OK.
[21:52:41] Loaded.
[21:52:41] Loading plugin: mysql.so
[21:52:41] >> plugin.mysql: R39-2 successfully loaded.
[21:52:41] Loaded.
[21:52:41] Loading plugin: sscanf.so
[21:52:41][21:52:41] ===============================
[21:52:41] sscanf plugin loaded.
[21:52:41] Version: 2.8.1
[21:52:41] (c) 2012 Alex "Y_Less" Cole
[21:52:41] ===============================
[21:52:41] Loaded.
[21:52:41] Loading plugin: streamer.so
[21:52:41]*** Streamer Plugin v2.7.8 by Incognito loaded ***
[21:52:41] Loaded.
[21:52:41] Loading plugin: nativechecker.so
[21:52:41] Loaded.
[21:52:41] Loaded 5 plugins.[21:52:41]
[21:52:41] Filterscripts
[21:52:41] ---------------
[21:52:41] Loaded 0 filterscripts.[21:52:41] Error: Function not registered: 'SSCANF_IsConnected'
[21:52:41] [debug] Run time error 19: "File or function is not found"
[21:52:41] [debug] SSCANF_IsConnected
[21:52:41] [debug] Run time error 19: "File or function is not found"
[21:52:41] [debug] SSCANF_IsConnected
[21:52:41] Script[gamemodes/JG.amx]: Run time error 19: "File or function is not found"
[21:52:41] Number of vehicle models: 0 -
Nick: Natural
Problema: As vrea sa deschid fisierul .amx de la un filterscript deoarece fisierul .pwn nu il am de la respectivul FS sau o metoda de a converti din .amx in .pwn
Erori / warnings: -
Lini/script: -
Ai incercat sa rezolvi singur ?: Am incercat sa dau cu save as in extensia .pwn dar tot imi arata cu caractere ciudate
-
Nick: NaturaL
Problema: Primesc niste erori la compilare si nu stiu dc ...
Erori / warnings: [pawn] Carbon.pwn(13309) : warning 219: local variable "i" shadows a variable at a preceding level
Carbon.pwn(15712) : error 017: undefined symbol "count"
Carbon.pwn(15712) : warning 215: expression has no effect
Carbon.pwn(15713) : error 017: undefined symbol "count"
Carbon.pwn(15714) : error 017: undefined symbol "count"
Carbon.pwn(22710) : error 029: invalid expression, assumed zero
Carbon.pwn(22710) : error 017: undefined symbol "cmd_rivalwar"
Carbon.pwn(22710) : error 029: invalid expression, assumed zero
Carbon.pwn(22710) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.[/pawn]
Lini/script: [pawn] Line 13309 : for(new i = 0; i < MAX_TURF; i++)
Line 15712: count ++;
Line 15713: TurfID[count] = GangZoneCreate(TurfInfo[count][MinX],TurfInfo[count][MinY],TurfInfo[count][MaxX],TurfInfo[count][MaxY]);
Line 15714: printf("ID:%d Own:%d Mnx:%f MnY:%f MxX:%f MxY:%f",count,TurfInfo[count][Owner],TurfInfo[count][MinX],TurfInfo[count][MinY],TurfInfo[count][MaxX],TurfInfo[count][MaxY]);
Line 22710: CMD:rivalwar(playerid, params[])[/pawn]
Ai incercat sa rezolvi singur ?: Am cautat pe net dar fara folos ...
-
As vrea sal fac filescript ... Mai putea ajuta tu ?Scriptul tau e distrus defapt scriptul tau copiat e distrus . Sterge-l si roaga pe cineva sa te ajute .
-
inlocuieste
PlayerInfo[playerid][pCash]
cuGetPlayerMoney(playerid)
Acuma imi da eroarea asta [pawn]C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\ArenaWar.pwn(124) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\ArenaWar.pwn(124) : warning 215: expression has no effect
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\ArenaWar.pwn(124) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\ArenaWar.pwn(124) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\ArenaWar.pwn(124) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.[/pawn]
Uite linia 124 [pawn] if(PlayerInfo(playerid) < 2000) return SendClientMessage(playerid, -1, "Ca sa intri la war ai nevoie de 2.000 $");[/pawn]
-
Nick: NaturaL
Problema: Am adaugat un fs cu sistem de war dau /organizewar apoi /enter si imi zice ca nu am 2000$ dar eu am acei bani ...
Erori / warnings: -
Lini/script: [pawn]CMD:enter(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1615.6256,-1502.6832,14.2260))
{
if(PlayerInfo[playerid][pCash] < 2000) return SendClientMessage(playerid, -1, "Ca sa intri la war ai nevoie de 2.000 $");
if(officialwar == 1 && PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "Nu poti intra pentru ca sala este inchisa");
if(IsALCN(playerid) || IsAYakuza(playerid) || IsABloods(playerid) || IsACrips(playerid) || IsANortenos(playerid) || IsASurenos(playerid) || IsAAdmin(playerid))
{
ResetPlayerWeapons(playerid);
if(DeagleWar == 1)
{
GivePlayerWeapon(playerid, 24, 999);
PlayerInfo[playerid][pCash] -= 1000;
}
else if(MP5War == 1)
{
GivePlayerWeapon(playerid, 29, 999);
PlayerInfo[playerid][pCash] -= 1250;
}
else if(AK47War == 1)
{
GivePlayerWeapon(playerid, 30, 999);
PlayerInfo[playerid][pCash] -= 1500;
}
else if(M4War == 1)
{
GivePlayerWeapon(playerid, 31, 999);
PlayerInfo[playerid][pCash] -= 1500;
}
else if(AllGunsWar == 1)
{
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 31, 999);
PlayerInfo[playerid][pCash] -= 2000;
}
SetPlayerPos(playerid, 1615.7615,-1494.5760,14.2258);
}
else return SendClientMessage(playerid, -1, "Doar factiunile de DM pot participa la war");
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1615.7615,-1494.5760,14.2258))
{
if(PlayerInfo[playerid][pCash] < 2000) return SendClientMessage(playerid, -1, "Ca sa intri la war ai nevoie de 2.000 $");
if(officialwar == 1 && PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "Nu poti intra pentru ca sala este inchisa");
if(IsALCN(playerid) || IsAYakuza(playerid) || IsABloods(playerid) || IsACrips(playerid) || IsANortenos(playerid) || IsASurenos(playerid) || IsAAdmin(playerid))
{
ResetPlayerWeapons(playerid);
if(DeagleWar == 1)
{
GivePlayerWeapon(playerid, 24, 999);
PlayerInfo[playerid][pCash] -= 1000;
}
else if(MP5War == 1)
{
GivePlayerWeapon(playerid, 29, 999);
PlayerInfo[playerid][pCash] -= 1250;
}
else if(AK47War == 1)
{
GivePlayerWeapon(playerid, 30, 999);
PlayerInfo[playerid][pCash] -= 1500;
}
else if(M4War == 1)
{
GivePlayerWeapon(playerid, 31, 999);
PlayerInfo[playerid][pCash] -= 1500;
}
else if(AllGunsWar == 1)
{
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 31, 999);
PlayerInfo[playerid][pCash] -= 2000;
}
SetPlayerPos(playerid, 1615.6256,-1502.6832,14.2260);
}
else return SendClientMessage(playerid, -1, "Doar factiunile de DM pot participa la war");
}
}
return 1;
}[/pawn]
Ai incercat sa rezolvi singur ?: -
-
Ok am modificat comanda si cum ar trebui sa fac la IsAMafia sa verifice daca playerul e in mafie ?
-
http://pastebin.com/ggb5Yi6Q
-
[pawn] if(IsAMafia(playerid))Si care e linia 37?
{[/pawn]
-
Nick: Natural
Problema: imi da 4 erori la comanda /war
Erori / warnings: [pawn]C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(37) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(37) : warning 215: expression has no effect
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(37) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(37) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(37) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
[/pawn]
Lini/script: [pawn]public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
if(strcmp(cmd, "/war", true) == 0)
{
if(IsAMafia(playerid))
{
GetPlayer2DRadarZone(playerid, zone, sizeof(zone));
//gettime(rhour, rminute, rsecond);
//if(rhour < 6) return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}War: {FFFFFF}You can't start a war that late!");
new side[MAX_PLAYERS], ncount=0;
if(PlayerInfo[playerid][pLeader] != 0) side[playerid] = PlayerInfo[playerid][pLeader]; else if(PlayerInfo[playerid][pMember] != 0) side[playerid] = PlayerInfo[playerid][pMember];
for(new n=1; n<sizeof(GangInfo); n++)
{
if(GangInfo[n][gFaction] == side[playerid]) ncount++;
}
if(PlayerInfo[playerid][pRank] >= 5) {} else return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}War: {FFFFFF}Nu ai rank-ul necesar!");
if(ncount >= 6) return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}War: {FFFFFF}Ai deja 6 teritorii!");
if(GetPlayerInterior(playerid) != 0) return 1;
if(War != 0) return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}War: {FFFFFF}Exista deja un war!");
new ward;
if(Warallowed == 0) return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}War: {FFFFFF}Un admin a oprit war-urile!");
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerInArea(playerid, 2335.575, 2522.421, -2685.911, -2405.642)) ward = 1;
else if(IsPlayerInArea(playerid, 2639.2, 2872.757, -2580.811, -2323.897)) ward = 2;
else if(IsPlayerInArea(playerid, 2323.897, 2545.777, -128.4566, 233.5575)) ward = 3;
else if(IsPlayerInArea(playerid, 2125.373, 2312.219, -116.7788, 221.8796)) ward = 4;
else if(IsPlayerInArea(playerid, 1144.432, 1448.057, 105.1009, 467.115)) ward = 5;
else if(IsPlayerInArea(playerid, 688.9946, 840.807, -677.3168, -408.7256)) ward = 6;
else if(IsPlayerInArea(playerid, 572.2159, 688.9946, -665.6389, -420.4035)) ward = 7;
else if(PlayerToPoint(160.0, playerid, 244.5219,-126.7156,1.8419)) ward = 8;
else if(IsPlayerInArea(playerid, -653.961, -362.0141, -245.2354, 163.4902)) ward = 9;
else if(IsPlayerInArea(playerid, -221.8796, 163.4902, -443.7593, -221.8796)) ward = 10;
else if(IsPlayerInArea(playerid, -653.961, -443.7593, -560.538, -443.7593)) ward = 11;
else if(IsPlayerInArea(playerid, -1132.754, -934.23, -770.7397, -583.8938)) ward = 12;
else if(IsPlayerInArea(playerid, -2300.542, -1973.561, -2569.133, -2230.474)) ward = 13;
else if(IsPlayerInArea(playerid, -2137.051, -1891.816, -1015.975, -712.3504)) ward = 14;
else if(IsPlayerInArea(playerid, -221.8796, 58.38938, -140.1345, 151.8124)) ward = 15;
else if(IsPlayerInArea(playerid, -2639.2, -2195.441, 2183.763, 2522.421)) ward = 16;
else if(IsPlayerInArea(playerid, -385.3699, 116.7788, 1015.975, 1249.533)) ward = 17;
else if(IsPlayerInArea(playerid, -1646.58, -1331.278, 2464.032, 2744.301)) ward = 18;
else return 1;
format(string, sizeof(string), "{0099FF}War: {FFFFFF}Acest teritoriu a fost deja ocupat acum %d ore.", GangInfo[ward][gHours]);
if(GangInfo[ward][gHours] > 0 && AdminDuty[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, string);
//if(PlayerInfo[playerid][pLeader] >= 1) {} else return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}War: {FFFFFF}Trebuie sa fii liderul unei mafie!");
new ftext[60], ftext1[60];
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) format(ftext, sizeof(ftext), "{5F361E}Dallas Crime Family{FFFFFF}");
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) format(ftext, sizeof(ftext), "{C8C1BF}Mafia Leone{FFFFFF}");
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) format(ftext, sizeof(ftext), "{7716A0}Diablos{FFFFFF}");
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) format(ftext, sizeof(ftext), "{D4AA1E}The Crips{FFFFFF}");
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) format(ftext, sizeof(ftext), "{17B41F}Uptown Riders{FFFFFF}");
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) format(ftext, sizeof(ftext), "{1CCDB5}Scaletta Famiglia{FFFFFF}");
if(GangInfo[ward][gFaction] == 11) format(ftext1, sizeof(ftext1), "{5F361E}Clanul Sadoveanu{FFFFFF}");
if(GangInfo[ward][gFaction] == 12) format(ftext1, sizeof(ftext1), "{C8C1BF}Clanul Capone{FFFFFF}");
if(GangInfo[ward][gFaction] == 13) format(ftext1, sizeof(ftext1), "{7716A0}Clanul Duduianu{FFFFFF}");
if(GangInfo[ward][gFaction] == 14) format(ftext1, sizeof(ftext1), "{D4AA1E}Clanul Corsicanu{FFFFFF}");
if(GangInfo[ward][gFaction] == 15) format(ftext1, sizeof(ftext1), "{17B41F}Clanul Tobosaru{FFFFFF}");
if(GangInfo[ward][gFaction] == 16) format(ftext1, sizeof(ftext1), "{1CCDB5}Clanul Camataru{FFFFFF}");
if(IsAAAlliance(playerid) && GangInfo[ward][gFaction] == 11 || IsAAAlliance(playerid) && GangInfo[ward][gFaction] == 15 || IsAAAlliance(playerid) && GangInfo[ward][gFaction] == 14)
return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}War: {FFFFFF}Alianta ta detine acest teritoriu!");
if(IsAIAlliance(playerid) && GangInfo[ward][gFaction] == 12 || IsAIAlliance(playerid) && GangInfo[ward][gFaction] == 13 || IsAIAlliance(playerid) && GangInfo[ward][gFaction] == 16)
return SendClientMessage(playerid, COLOR_WHITE, "{0099FF}War: {FFFFFF}Alianta ta detine acest teritoriu!");
format(string, sizeof(string), "(( CsForce News: )) %s a inceput un razboi cu %s!", ftext, ftext1);
BroadCast(0x8D8DFFFF,string);
format(string, sizeof(string), "(( CsForce News: )) {FFFFFF}Razboiul se desfasoara la %s! Evitati acea zona!", zone);
BroadCast(0x8D8DFFFF,string);
if(IsPlayerInArea(playerid, 2335.575, 2522.421, -2685.911, -2405.642)) GangZoneFlashForAll(Gangzone[0], 0xFF6347AA);
else if(IsPlayerInArea(playerid, 2639.2, 2872.757, -2580.811, -2323.897)) GangZoneFlashForAll(Gangzone[1], 0xFF6347AA);
else if(IsPlayerInArea(playerid, 2323.897, 2545.777, -128.4566, 233.5575)) GangZoneFlashForAll(Gangzone[2], 0xFF6347AA);
else if(IsPlayerInArea(playerid, 2125.373, 2312.219, -116.7788, 221.8796)) GangZoneFlashForAll(Gangzone[3], 0xFF6347AA);
else if(IsPlayerInArea(playerid, 1144.432, 1448.057, 105.1009, 467.115)) GangZoneFlashForAll(Gangzone[4], 0xFF6347AA);
else if(IsPlayerInArea(playerid, 688.9946, 840.807, -677.3168, -408.7256)) GangZoneFlashForAll(Gangzone[5], 0xFF6347AA);
else if(IsPlayerInArea(playerid, 572.2159, 688.9946, -665.6389, -420.4035)) GangZoneFlashForAll(Gangzone[6], 0xFF6347AA);
else if(IsPlayerInArea(playerid, 93.423, 397.0478, -291.9469, 70.06725)) GangZoneFlashForAll(Gangzone[7], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -653.961, -362.0141, -245.2354, 163.4902)) GangZoneFlashForAll(Gangzone[8], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -221.8796, 163.4902, -443.7593, -221.8796)) GangZoneFlashForAll(Gangzone[9], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -653.961, -443.7593, -560.538, -443.7593)) GangZoneFlashForAll(Gangzone[10], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -1132.754, -934.23, -770.7397, -583.8938)) GangZoneFlashForAll(Gangzone[11], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -2300.542, -1973.561, -2569.133, -2230.474)) GangZoneFlashForAll(Gangzone[12], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -2137.051, -1891.816, -1015.975, -712.3504)) GangZoneFlashForAll(Gangzone[13], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -221.8796, 58.38938, -140.1345, 151.8124)) GangZoneFlashForAll(Gangzone[14], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -2639.2, -2195.441, 2183.763, 2522.421)) GangZoneFlashForAll(Gangzone[15], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -385.3699, 116.7788, 1015.975, 1249.533)) GangZoneFlashForAll(Gangzone[16], 0xFF6347AA);
else if(IsPlayerInArea(playerid, -1646.58, -1331.278, 2464.032, 2744.301)) GangZoneFlashForAll(Gangzone[17], 0xFF6347AA);
WarStarted=1;
WarF = side[playerid];
WarF1 = GangInfo[ward][gFaction];
WarZone = ward;
for(new w = 0; w < sizeof(GangInfo); w++)
{
WarPoints[w] = 0;
}
if(side[playerid] == 11 || side[playerid] == 14 || side[playerid] == 15) WarAttack1 = 1; else WarAttack1 = 2;
if(GangInfo[ward][gFaction] == 11 || GangInfo[ward][gFaction] == 14 || GangInfo[ward][gFaction] == 15) WarAttack2 = 1; else WarAttack2 = 2;
if(IsAIAlliance(playerid)) War = 1; else if(IsAAAlliance(playerid)) War = 2;
//if(GangInfo[ward][gFaction] == 5 || GangInfo[ward][gFaction] == 13 || GangInfo[ward][gFaction] == 14) War1 = 2; else if(GangInfo[ward][gFaction] == 6 || GangInfo[ward][gFaction] == 12 || GangInfo[ward][gFaction] == 15) War1 = 1;
WarMan1 = 999;
WarMan2 = 999;
WarScore1 = 0;
WarScore2 = 0;
for(new i=0; i<MAX_PLAYERS; i++)
{
WarStats1 = 0;
WarStats2 = 0;
if(IsAIAlliance(i) || IsAAAlliance(i))
{
format(string, sizeof(string), "{DC0C0C}War: {FFFFFF}%s din %s a declansat un razboi! Pentru a castiga razboiul, trebuie sa faceti un scor mai bun in 15 minute!", sendername, ftext);
SendClientMessage(i, COLOR_WHITE, string);
}
}
}
}[/pawn]
Ai incercat sa rezolvi singur ?: Am cautat pe internet dar fara folos
-
Nick: NaturaL
Problema: Am un sistem de war dar nu stiu cum sa'l fac filterscript ... Cand ii dau compile imi da vreo 19 erori
Erori / warnings: [pawn] C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(1) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(3) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(5) : error 017: undefined symbol "MAX_ZONE_NAME"
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(5) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(6) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(6) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(11) : error 017: undefined symbol "MAX_PLAYERS"
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(12) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(13) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(15) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(17) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(18) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(19) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(20) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(22) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(23) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(23) : warning 215: expression has no effect
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(23) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(23) : error 010: invalid function or declaration
C:\Documents and Settings\Ciprian\Desktop\gamemode's\BloWn GM\filterscripts\sistemwar.pwn(23 -- 24) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
19 Errors.[/pawn]
Lini/script: scriptul : http://pastebin.com/8rPYJ6kn
Ai incercat sa rezolvi singur ?: Am incercat sal bag intr'un gm dar la fel
-
Nick: NaturaL
Problema: La comanda /bigears as vrea sa bag acces si la Agenti
Erori / warnings: -
Lini/script: [pawn] if(strcmp(cmd, "/bigears", true) == 0 && PlayerData[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(playerid))
{
if (!BigEar[playerid])
{
BigEar[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Bigears {ADFF2F}activat{ffffff}.");
}
else if (BigEar[playerid])
{
(BigEar[playerid] = 0);
SendClientMessage(playerid, COLOR_WHITE, "Bigears {ff0000}dezactivat{ffffff}.");
}
}
return 1;
}[/pawn]
Ai incercat sa rezolvi singur ?: Da am incercat sa bag aceasta linie la comanda si mia dat multe erori la compilare[pawn]if (PlayerData[playerid][pAgent] >= 1)[/pawn]
-
Multumesc de ajutor
-
Si turfurile trebuie sterse ? Daca da , ce ar trebui sa sterg si de acolo ?
-
Nick: NaturaL
Problema: As vrea sa schimb sistemul de war de la gm blown , dar nu stiu cu ce sa incep... ce ar trebui sa sterg
Erori / warnings: -
Lini/script: -
Ai incercat sa rezolvi singur ?: Nu vreau sa sterg ceva care nu ar trebui sters , deacea intreb
-
Nu prea inteleg nimic de acolo ... Sunt incepator .. Cred ca o las balta cu scriptul asta , e prea mult pentru mine ...
-
Si cum as putea face sa-mi salveze
-
Aha, dar nu se salveaza acele Likes / Views ...
-
Nu merge ... Tot numi creeaza ... Oare trb sa bag in loc "FaceBook.db" numele bazei mele de date ?
-
Nick: Natural
Problema: Am luat un filterscript lam bagat merge totul bine dar nu se creeaza acel tabel in baza de date ... Si nu se salveaza acele likes si views ...
Erori / warnings: -
Lini/script: [pawn]public OnFilterScriptInit( )
{
Database = db:open( "FaceBook.db" );
db:query( Database, "CREATE TABLE IF NOT EXISTS `FProfiles` (`Nume` TEXT, \
`Password` TEXT, \
`Age` NUMERIC, \
`Sex` TEXT, \
`Country` TEXT, \
`Likes` NUMERIC, \
`Views` NUMERIC, \
`Privacy` NUMERIC, \
`Status` TEXT, \
`Ocupation` TEXT, \
`Expiration` TEXT)" );
return 1;
}
public OnFilterScriptExit( ) return db:close( Database );[/pawn]
Ai incercat sa rezolvi singur ?: Am cautat pe internet dar nu am gasit ..
-
Nick: NaturaL
Problema:Salut. Folosesc GM blown si am observat un bug si anume ca orice player normal isi poate da admin singur ... Gm blown are acea chestie cu EsteManager si acolo am doar numele meu si al unui baiat dar si restul playerilor isi pot da admin singuri pe server ... cu toate ca nu apar acolo
Erori / warnings: -
Lini/script: [pawn] forward EsteManager(playerid);
public EsteManager(playerid)
{
if(IsPlayerConnected(playerid))
{
new nume[512];
GetPlayerName(playerid, nume, sizeof(nume));
// Creator !
if((strcmp(nume, "test", true) == 0) || (strcmp(nume, "test", true) == 0) || (strcmp(nume, "", true) == 0) || (strcmp(nume, "", true) ==0))
{
return 1;
}
}
return 0;
}[/pawn]
Ai incercat sa rezolvi singur ?: -
-
A mers , multumesc de ajutor . Acuma am depistat alta problema cand dau /fare imi zice ca nu sunt in taxi ...
[pawn]//-----------------------------------------Comanda-----------------------------------------//
if(strcmp(cmd, "/fare", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerData[playerid][pMember] == 6 || PlayerData[playerid][pLeader] == 6)
{
if(TransportDuty[playerid] > 0)
{
if(TransportDuty[playerid] == 1)
{
TaxiDrivers -= 1;
}
TransportDuty[playerid] = 0;
format(string, sizeof(string), "* Acum numai esti la servici, ai castigat $%d pentru munca depusa.", TransportMoney[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerCash(playerid, TransportMoney[playerid]);
ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
return 1;
}
new Veh = GetPlayerVehicleID(playerid);
if(Veh >= 420 && Veh <= 420)
{
if(GetPlayerState(playerid) == 2)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendUsage(playerid,"/fare [price]");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 500) { SendClientMessage(playerid, COLOR_GREY, "Pretul (Fare) trebuie sa fie cuprins intre $1 si $500 !"); return 1; }
TaxiDrivers += 1; TransportDuty[playerid] = 1; TransportValue[playerid] = moneys;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "Taximetristul %s este la servici, pret: $%d. Daca ai nevoie de un taxi, scrie /service", sendername, TransportValue[playerid]);
OOCNews(TEAM_GROVE_COLOR,string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu esti taximetrist!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu esti intr-un taxi!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu esti taximetrist sau sofer pe autobuz!");
return 1;
}
}
return 1;
}[/pawn]
-
Mda, am gresit eu linia imi cer scuze . In loc de IsATobosaruCar am pus acea linie cu tobocar nu camacar
Problema quest de craciun
in Arhivă probleme
Posted
Mersi Stefanpuica, am sa incerc ceea ce mi-ai dat.