Dynamic
Membru-
Posts
35 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by Dynamic
-
tot nu reusesc modifica tu te rog scriptu te rog frumos
-
nu chiar l-am copiat am mai modific unele locuri dar nu toate m-ai putea ajuta te rog?:|
-
imi da eroare la compilare dupa ce am adaugat scriptul fast-event in gm Errori: C:\Documents and Settings\Administrator\My Documents\Downloads\server by Dynamic\gamemodes\gf-dynamic.pwn(2882) : error 021: symbol already defined: "main" C:\Documents and Settings\Administrator\My Documents\Downloads\server by Dynamic\gamemodes\gf-dynamic.pwn(13456) : warning 225: unreachable code C:\Documents and Settings\Administrator\My Documents\Downloads\server by Dynamic\gamemodes\gf-dynamic.pwn(58526) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\Administrator\My Documents\Downloads\server by Dynamic\gamemodes\gf-dynamic.pwn(58544) : warning 225: unreachable code C:\Documents and Settings\Administrator\My Documents\Downloads\server by Dynamic\gamemodes\gf-dynamic.pwn(58544) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\My Documents\Downloads\server by Dynamic\gamemodes\gf-dynamic.pwn(58544) : error 017: undefined symbol "xReactionProgress" C:\Documents and Settings\Administrator\My Documents\Downloads\server by Dynamic\gamemodes\gf-dynamic.pwn(58544) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\My Documents\Downloads\server by Dynamic\gamemodes\gf-dynamic.pwn(58544) : fatal error 107: too many error messages on one line Fsu: [pawn]#include <a_samp> #if !defined Loop #define Loop(%0,%1) \ for(new %0 = 0; %0 != %1; %0++) #endif #if !defined function #define function%0(%1) \ forward%0(%1); public%0(%1) #endif #if !defined PURPLE #define PURPLE \ 0xBF60FFFF #endif #if !defined GREEN #define GREEN \ 0x94D317FF #endif #if !defined TIME #define TIME \ 180000 #endif new xCharacters[][] = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }, xChars[16] = "", ReactionTime, xCash, xScore, bool: xTestBusy ; main() { } public OnFilterScriptInit() { ReactionTime = SetTimer("ReactionTest", TIME, 1); return 1; }// aici 1 eroare la linia 13456 public OnFilterScriptExit() { KillTimer(ReactionTime); return 1; } public OnPlayerText(playerid, text[]) { switch(xTestBusy)// aici a 2 a eroare la linia [58526] { case true: { if(!strcmp(xChars, text, false)) { new string[128], pName[MAX_PLAYER_NAME] ; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "-= \%s\" a castigat testul de reactie. -=", pName); SendClientMessageToAll(GREEN, string); format(string, sizeof(string), "-= Ai incasat $%d + %d score. -=", xCash, xScore); SendClientMessage(playerid, GREEN, string); GivePlayerMoney(playerid, xCash); SetPlayerScore(playerid, GetPlayerScore(playerid) + xScore); ReactionTime = SetTimer("ReactionTest", TIME, 1); xTestBusy = false; } } } return 1; } function xReactionProgress() // aici eroarea 3,4,5 la linia [58544] { switch(xTestBusy) { case true: { new string[128] ; format(string, sizeof(string), "{6EF83C}-= {FFFFFF}Nimeni nu a castigat testul de reactie. Va reincepe altul in %d minutes. {6EF83C}-=", (TIME/60000)); SendClientMessageToAll(PURPLE, string); ReactionTime = SetTimer("ReactionTest", TIME, 1); } } return 1; } function ReactionTest() { new xLength = (random(8) + 2), string[128] ; xCash = (random(10000) + 20000); xScore = (random(2)+1); format(xChars, sizeof(xChars), ""); Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]); format(string, sizeof(string), "{6EF83C}-= {FFFFFF}Cine scrie primul %s va castiga $%d + %d si score points. {6EF83C}-=", xChars, xCash, xScore); SendClientMessageToAll(PURPLE, string); KillTimer(ReactionTime); xTestBusy = true; SetTimer("xReactionProgress", 30000, 0); return 1; }[/pawn]
-
am rezolvat problema cu sacul puteti da tc!
-
ce vrei sa fac cu fsu ala? mai bn da-mi scriptul nu fs-ul vreau scriptul in intregime va rog ajutatima.
-
[pawn]enum mbinfo { Float:XPOS, Float:YPOS, Float:ZPOS, Position[50] }; new Float:MBSPAWN[][mbinfo] = { // Positions, (X, Y, Z, Location) {1544.8871,-1693.1235,13.9214, "Police LS"}, {883.6549,-1516.7714,14.2323, "The Triads "}, {2168.4043,-1458.7748,23.9844, "Ballas"}, {2798.7700,-1997.1902,13.5533, "Los Santos Vagos"}, {2512.7300,-1683.6602,13.4725, "Grove Street"}, {650.3212,-1307.3025,13.6725, "Varioz Los Aztecas"}, {-2311.7415,-1637.7587,483.7031, "Muntele Chilliad"}, {134.512237, 1952.987426, 18.978763, "Area 51"}, {-2353.547119, 2430.278320, 7.510148, "Bayside"}, {1455.6147,-2307.9673,13.5469, "Aero LS"}, {351.5012,2446.7690,16.8099, "Aero Parasit"}, {1490.0616,2773.3286,10.8203, "NFS Club"}, {2472.1912,1545.8702,10.8216, "NRG Club"}, {-1408.7715,-243.7071,6.0000, "Aero SF"}, {1638.8275,1633.2781,10.8203, "Aero LV"}, {1767.0514,-1152.5845,24.3359, "GS/LS"}, {1778.9139,-1308.8214,13.7171, "News Reporter"}, {1951.6908,-1378.2253,18.5781, "Skate Park"}, {1751.7148,-1845.8448,13.5777, "Gara LS"}, {-1968.4534,111.2760,27.6875, "Gara SF"}, {-1958.7644,269.1628,41.0471, "Rent Car [sF]"}, {-2689.0938,1390.8561,7.0938, "Jizzy [sF]"}, {2008.4602,1034.3915,10.8203, "The Mafia "}, {79.1661,-170.2217,2.5863, "Blueberry"} }; new Float:MoneyBagPos[3], MoneyBagFound=1, MoneyBagLocation[50], MoneyBagPickup, Timer[2]; //Hours, Minutes, Seconds, Milliseconds #define MoneyBagDelay(%1,%2,%3,%4) (%1*3600000)+(%2*60000)+(%3*1000)+%4 //20 = 200,000 minimum 30 = 200,000 -> 500,000 #define MoneyBagCash ((random(30)+20)*1000) //10 mins! #define MB_DELAY MoneyBagDelay(0, 30, 0, 0)[/pawn] [pawn]{ if(IsPlayerAdmin(playerid)) { if(!strcmp("/gotomb", cmdtext, true)) { SetPlayerPos(playerid, MoneyBagPos[0], MoneyBagPos[1] +3, MoneyBagPos[2]); return SendClientMessage(playerid, -1, "You have been {FF0000}teleported {FFFFFF}to the {33FF66}money bag"); } if(!strcmp("/startmb", cmdtext, true)) return MoneyBag(); if(!strcmp("/togglemb", cmdtext, true)) { if(Timer[0] == 0) { KillTimer(Timer[1]); Timer[0] = 1; SendClientMessage(playerid, -1, "Money bag turned {FF0000} off!"); return 1; } if(Timer[0] == 1) { Timer[1] = SetTimer("MoneyBag", MB_DELAY, true); Timer[0] = 0; SendClientMessage(playerid, -1, "Money bag turned {33FF66} on!"); return 1; } } } if (strcmp(cmd, "/sacul", true) == 0) { new string2[150]; if(!MoneyBagFound) format(string2, sizeof(string2), "**{FF9900}Sacul cu bani {FFFFFF}este ascuns in {99FFFF}%s {FFFFFF}si contine {33FF00}$%d!", MoneyBagLocation, MoneyBagCash); if(MoneyBagFound) format(string2, sizeof(string2), "{FFFFFF}**Sacul cu bani nu a fost activat!"); return SendClientMessage(playerid, -1, string2); } }[/pawn] [pawn]forward MoneyBag(); public MoneyBag() { new string[175], money = MoneyBagCash; if(!MoneyBagFound) { format(string, sizeof(string), "**{33FF66} Sacul cu bani {FFFFFF}nu a fost gasit,acesta se afla in {33FF00} %s", MoneyBagLocation); SendClientMessageToAll(-1, string); } else if(MoneyBagFound) { MoneyBagFound = 0; new randombag = random(sizeof(MBSPAWN)); MoneyBagPos[0] = MBSPAWN[randombag][XPOS]; MoneyBagPos[1] = MBSPAWN[randombag][YPOS]; MoneyBagPos[2] = MBSPAWN[randombag][ZPOS]; format(MoneyBagLocation, sizeof(MoneyBagLocation), "%s", MBSPAWN[randombag][Position]); format(string, sizeof(string), "**Un {FF9900}sac cu bani {FFFFFF} a fost ascuns in {33FF00}%s {FFFFFF}si contine {33FF00}$%d !", MoneyBagLocation, money); SendClientMessageToAll(-1, string); MoneyBagPickup = CreatePickup(1550, 2, MoneyBagPos[0], MoneyBagPos[1], MoneyBagPos[2], -1); } return 1; }[/pawn]
-
am o problema la sacul cu bani. l-am bagat in gm a mers fara erori bine totul, dar cand intru pe server tot astept dar nu apare sacul nu stiu de ce si cand dau /sacul zice ca nu e activa. va rog ajutatima
-
dupa cum spune si titlul am nevoie de putin ajutor la scriptul fast-event [primu care scrie cuvantu cel mai repede primeste bani]. as vrea sa iau scriptu dintr-un gm sa-l bag in altul dar nu stiu care e tot scriptul in intregime stiu doar define-urile si de la public onplayertext.
-
am rezolvat ms mult
-
dupa cum spune si titlul cand dau cuiva /w text zice ca ii este blocat whisperu, indiferent ca e admin/playeri sau orice care care vrea sa dea /w nu merge. va rog ajutatima whisperu if(strcmp(cmd, "/whisper", true) == 0 || strcmp(cmd, "/w", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !"); return 1; } if(PlayerInfo[playerid][pLevel] < 4) { SendClientMessage(playerid, 0x4FA7FFFF, "*** You need level 4 to use this !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTRED, "USAGE: (/w)isper [playerid/PartOfName] [whisper text]"); return 1; } giveplayerid = ReturnUser(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(HidePM[giveplayerid] > 0) { SendClientMessage(playerid, COLOR_LIGHTGREEN, " That player is blocking Whispers !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(giveplayerid == playerid) { format(string, sizeof(string), "* %s mutters somthing.", sendername); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/w)isper [playerid/PartOfName] [whisper text]"); return 1; } format(string, sizeof(string), "%s[ID:%d] whispers: %s", sendername, playerid, (result)); SendClientMessage(giveplayerid, 0x009191FF, string); format(string, sizeof(string), "Wisper sent to %s[ID:%d] : %s", giveplayer, giveplayerid ,(result)); SendClientMessage(playerid, 0x009191FF, string); SBizzInfo[2][sbTill] += txtcost / 2; ExtortionSBiz(2, txtcost / 2); return 1; } } else { format(string, sizeof(string), " That player is not connected.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } /togwhisper if(strcmp(cmd, "/togwhisper", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pDonateRank] > 0 || PlayerInfo[playerid][pAdmin] > 1) { if (!HidePM[playerid]) { HidePM[playerid] = 1; SendClientMessage(playerid, COLOR_GRAD2, " Whisper chat channel Disabled !"); } else if (HidePM[playerid]) { HidePM[playerid] = 0; SendClientMessage(playerid, COLOR_GRAD2, " Whisper chat channel Enabled !"); } } else { SendClientMessage(playerid, COLOR_GREY, " Not an Admin / Premium Account User !"); return 1; } } return 1; }