ToX1c
Membru-
Posts
245 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by ToX1c
-
Tot nu vrea sa mearga daca am un checkpoint pe mapa , daca dau prima data /findcar imi apare checkpointul si dupa dau iar imi apare mesajul sa dau /killcp , dar daca am alt checkpoint de la /jobs merge sa dau /findcar si imi dispare acel checkpoint de la /jobs si ma duce la masina
-
Ma poate ajuta si pe mine cineva?
-
Imi zice ca nu am nicio masina personala si eu am :(
-
C:\Users\Desktop\sG\gamemodes\rp.pwn(13285) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Linia else SendClientMessage(playerid, COLOR_GREY, "Foloseste /killcp pentru a folosi comanda !");
-
http://pastebin.com/kAz2ct5y http://pastebin.com/nEiJBuT5
-
E pus uitete la finalul scriptului
-
Am facut ceva de genu da imi apare 2 mesaje.. CMD:findcar(playerid, params[]) { new carslot; if(sscanf(params, "d", carslot)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/findcar [1/2/3/4]"); { if(CP[playerid] == 0) { if(playerVariables[playerid][pCarModel1] >= 1 || playerVariables[playerid][pCarModel2] >= 1 || playerVariables[playerid][pCarModel3] >= 1 || playerVariables[playerid][pCarModel4] >= 1) { if(carslot == 1) { GetVehiclePos(playerVariables[playerid][pCarID1], playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel1] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 2) { GetVehiclePos(playerVariables[playerid][pCarID2], playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel2] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 3) { GetVehiclePos(playerVariables[playerid][pCarID3], playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel3] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 4) { GetVehiclePos(playerVariables[playerid][pCarID4], playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel4] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } } else SendClientMessage(playerid, COLOR_GREY, "Invalid car slot id."); } else SendClientMessage(playerid, COLOR_GREY, "You don't own a vehicle."); } SendClientMessage(playerid, COLOR_GREY, "Foloseste /killcp pentru a folosi comanda !"); return 1; } http://tinypic.com/view.php?pic=1597jp&s=8#.U2QUZoF_sQl
-
Nick: ToX1c Problema:Salut cum as putea face si eu la comanda /findcar daca este un checkpoint pe mapa sa nu pot sa dau Lini/script: CMD:findcar(playerid, params[]) { if(sweep[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE" Nu poti folosi acum aceasta comanda"); return 1; } new carslot; if(sscanf(params, "d", carslot)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/findcar [1/2/3/4]"); { if(CP[playerid] == 0) { if(playerVariables[playerid][pCarModel1] >= 1 || playerVariables[playerid][pCarModel2] >= 1 || playerVariables[playerid][pCarModel3] >= 1 || playerVariables[playerid][pCarModel4] >= 1) { if(carslot == 1) { GetVehiclePos(playerVariables[playerid][pCarID1], playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel1] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 2) { GetVehiclePos(playerVariables[playerid][pCarID2], playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel2] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 3) { GetVehiclePos(playerVariables[playerid][pCarID3], playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel3] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 4) { GetVehiclePos(playerVariables[playerid][pCarID4], playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel4] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } } else SendClientMessage(playerid, COLOR_GREY, "Invalid car slot id."); } else SendClientMessage(playerid, COLOR_GREY, "You don't own a vehicle."); } SendClientMessage(playerid, COLOR_GREY, "Foloseste /killcp pentru a folosi comanda !"); return 1; } Ai incercat sa rezolvi singur ?: Am incercat eu sa fac da nu merge imi apare asa http://tinypic.com/view.php?pic=1597jp&s=8#.U2QUZoF_sQl
-
Salut cum as putea face si eu la comanda /findcar daca este un checkpoint pe mapa sa nu pot sa dau Am incercat eu sa fac da nu merge http://tinypic.com/view.php?pic=1597jp&s=8#.U1k571V_tCI CMD:findcar(playerid, params[]) { if(sweep[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE" Nu poti folosi acum aceasta comanda"); return 1; } new carslot; if(sscanf(params, "d", carslot)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/findcar [1/2/3/4]"); { if(CP[playerid] == 0) { if(playerVariables[playerid][pCarModel1] >= 1 || playerVariables[playerid][pCarModel2] >= 1 || playerVariables[playerid][pCarModel3] >= 1 || playerVariables[playerid][pCarModel4] >= 1) { if(carslot == 1) { GetVehiclePos(playerVariables[playerid][pCarID1], playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos1][0], playerVariables[playerid][pCarPos1][1], playerVariables[playerid][pCarPos1][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel1] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 2) { GetVehiclePos(playerVariables[playerid][pCarID2], playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos2][0], playerVariables[playerid][pCarPos2][1], playerVariables[playerid][pCarPos2][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel2] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 3) { GetVehiclePos(playerVariables[playerid][pCarID3], playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos3][0], playerVariables[playerid][pCarPos3][1], playerVariables[playerid][pCarPos3][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel3] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } else if(carslot == 4) { GetVehiclePos(playerVariables[playerid][pCarID4], playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2]); SetPlayerCheckpoint(playerid, playerVariables[playerid][pCarPos4][0], playerVariables[playerid][pCarPos4][1], playerVariables[playerid][pCarPos4][2], 10.0); playerVariables[playerid][pCheckpoint] = 4; format(szMessage, sizeof(szMessage), "A checkpoint has been set to your %s.", VehicleNames[playerVariables[playerid][pCarModel4] - 400]); SendClientMessage(playerid, COLOR_WHITE, szMessage); } } else SendClientMessage(playerid, COLOR_GREY, "Invalid car slot id."); } else SendClientMessage(playerid, COLOR_GREY, "You don't own a vehicle."); } SendClientMessage(playerid, COLOR_GREY, "Foloseste /killcp pentru a folosi comanda !"); return 1; }
-
Ma poate ajuta cineva?
-
Salut , cum as putea face la Masinile cu pPcarkey3 sa iti trebuieasca donate rank if(listitem==1) { if (GetPlayerMoney(playerid) >= 90000) { GivePlayerMoney(playerid,-90000); //bullet new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new thiscar = CreateVehicle(541,X,Y,Z,1,0,0,99999999); if(PlayerInfo[playerid][pPcarkey] == -1) { PlayerInfo[playerid][pPcarkey] = thiscar; } else if(PlayerInfo[playerid][pPcarkey2] == -1) { PlayerInfo[playerid][pPcarkey2] = thiscar; } else if(PlayerInfo[playerid][pPcarkey3] == -1) { PlayerInfo[playerid][pPcarkey3] = thiscar; } else { return 1; } CarInfo[thiscar][cOwned] = 1; CarInfo[thiscar][cModel] = 541; CarInfo[thiscar][cColorOne] = 0; CarInfo[thiscar][cColorTwo] = 0; CarInfo[thiscar][cLocationx] = X; CarInfo[thiscar][cLocationy] = Y; CarInfo[thiscar][cLocationz] = Z; CarInfo[thiscar][cAngle] = 1; CarInfo[thiscar][cValue] = 90000; CarInfo[thiscar][cLock] = 0; CarInfo[thiscar][paintjob] = -1; PutPlayerInVehicle(playerid,thiscar,0); GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(CarInfo[thiscar][cOwner], sendername, 0, strlen(sendername), 999); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita sa o parchezi cu /v park!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Felicitari ti-ai cumparat o masina noua!"); SendClientMessage(playerid, COLOR_GRAD2, "Scrie /v pentru manualul masini!"); format(CarInfo[thiscar][cDescription], 32, "Bullet"); OnCarUpdate(); SavePlayerData(playerid); } else { SendClientMessage(playerid, COLOR_WHITE, " Nu ai suficienti bani pentru a cumpara masina aceasta !"); } }
-
Salut cand scriu pe /n nu imi apare nimic , poate cineva sa ma ajute? if(strcmp(cmd, "/n", true) == 0 || strcmp(cmd, "/newbie", true) == 0) { if(IsPlayerConnected(playerid)) { if(!gPlayerLogged[playerid]) { SendClientMessage(playerid, COLOR_GREY, "Nu te-ai logat."); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_MEDIC_COLOR, MUTE_TEXT); return 1; } if(NewbieChat) return SendClientMessage(playerid,COLOR_GRAD1,"Canalul de conversatii pentru incepatori a fost dezactivat de un administrator."); if(NewbieCountDown[playerid]) return SendClientMessage(playerid,COLOR_GREY,"Trebuie sa astepti 10 secunde pentru a utiliza din nou canalul de conversatii pentru incepatori."); if(gNewbie[playerid]) return 1; GetPlayerName(playerid, sendername, sizeof(sendername)); 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, "UTILIZARE: (/n)ewbie [newbie chat]"); return 1; } result[0] = toupper(result[0]); new l = PlayerInfo[playerid][pLeader]; new tt[24]; if(l == 1) tt = "PD"; else if(l == 2) tt = "F.B.I"; else if(l == 3) tt = "NG"; else if(l == 4) tt = "Medic"; else if(l == 5) tt = "La Cosa Nostra"; else if(l == 6) tt = "Yakuza"; else if(l == 7) tt = "Mayor"; else if(l == 8) tt = "Hitman"; else if(l == 9) tt = "UST"; else if(l == 10) tt = "Smugglers"; else if(l == 11) tt = "SI"; else if(l == 12) tt = "SFR"; else if(l == 13) tt = "Grove"; else if(l == 14) tt = "Ballas"; else if(l == 15) tt = "DNB"; GetPlayerName(playerid,sendername,sizeof(sendername)); if(FindIP(result)) { GetPlayerName(playerid,sendername,sizeof sendername); format(string,sizeof string,"[AdmWarning] %s a scris un IP:",sendername); SendAdminMessage(0xF7F99BFF,string); format(string,sizeof string,"\"%s\"",result); SendAdminMessage(0xF7F99BFF,string); } if(PlayerInfo[playerid][pLevel] < 4 && !PlayerInfo[playerid][pAdmin] && !PlayerInfo[playerid][pLeader]) NewbieCountDown[playerid] = true, SetTimerEx("Newbiecountdown",10000,false,"d",playerid); if(PlayerInfo[playerid][pLevel] < 4 && !PlayerInfo[playerid][pAdmin] && !PlayerInfo[playerid][pHelper] && !PlayerInfo[playerid][pLeader]) { format(string,sizeof(string),"(N) Incepator de level %i %s: %s",PlayerInfo[playerid][pLevel],sendername,(result)); } else if(PlayerInfo[playerid][pAdmin] > 0) { format(string,sizeof(string),"(N) Admin Level %i %s: %s",PlayerInfo[playerid][pAdmin],sendername,(result)); } else if(PlayerInfo[playerid][pHelper] > 0) { format(string,sizeof(string),"(N) Helper Level %i %s: %s",PlayerInfo[playerid][pAdmin],sendername,(result)); } else if(PlayerInfo[playerid][pLeader] > 0) { format(string,sizeof(string),"(N) Lider %s %s: %s",tt,sendername,(result)); } else return 1; SendNewbieMessage(0xBFF55AFF,string); if(!gNewbie[playerid]) printf("(N) %s",string); } }
-
Am rezolvat , uitasem de <
-
Salut all , am vrut sa fac si eu la comanda /withdraw , cei care nu au 4 rp-uri sa nu poata sa dea , si tot nu merge CMD:withdraw(playerid, params[]) { new string[256]; if(PlayerInfo[playerid][pExp] == 4) return SendClientMessage(playerid, COLOR_GRAD1, "4 Respect Points pentru a folosi comanda !"); if(PlayerInfo[playerid][pLocal] == 103) { if(sscanf(params, "i", withdraw)) { SendClientMessage(playerid, COLOR_ORANGE, "{F97804}USAGE:{B4B5B7}{FFFFFF} /withdraw [amount]"); format(string, sizeof(string), "You Have %s in your account.", FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (withdraw > PlayerInfo[playerid][pAccount] || withdraw < 1) { SendClientMessage(playerid, COLOR_GRAD1, "You dont have that much."); return 1; } ConsumingMoney[playerid] = 1; PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + withdraw; PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-withdraw; format(string, sizeof(string), "You Have Withdrawn %s from your account Total: %s ", FormatMoney(withdraw),FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); } else if(PlayerToPoint(1.5, playerid, -1973.2712,117.3730,27.6875)) { if(sscanf(params, "i", withdraw)) { SendClientMessage(playerid, COLOR_ORANGE, "{F97804}USAGE:{B4B5B7}{FFFFFF} /withdraw [amount]"); format(string, sizeof(string), "You Have %s in your account.", FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (withdraw > PlayerInfo[playerid][pAccount] || withdraw < 1) { SendClientMessage(playerid, COLOR_GRAD1, "You dont have that much !"); return 1; } ConsumingMoney[playerid] = 1; PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + withdraw; PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-withdraw; format(string, sizeof(string), "You Have Withdrawn %s from your account Total: %s ", FormatMoney(withdraw),FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); } else { SendClientMessage(playerid, COLOR_GRAD1, "You are not at the Bank / ATM !"); } return 1; }
-
Care ma puteti ajuta si pe mine?
-
Salut am si eu un sistem sweeper , si as vrea sa il modific in alt mod De ex dau /startsweep si imi apare primul checkpoint si imi da 50$ din checkpointul ala dispare si apare altu si tot asa Eu as vrea sa fac cand dau /startsweep sa ma duc in primul checkpoint si sa nu imi dea bani sa imi dea la ultimul checkpoint facut de mine si sa se respawneze masina dupa sa o iau iar de la capat cu /startsweep astea sunt checkpointurile new Float:gSweeperPoints[5][3] = { {1148.0198,-1675.4827,13.5063}, {1056.7313,-1709.6992,13.1080}, {1040.1718,-1586.8624,13.1078}, {1115.1776,-1574.6176,13.1173}, {1136.0420,-1611.9484,13.6059} }; aici onplayerentercheckpoint if(PlayerIsSweeping[playerid] == 1) { if(IsPlayerInAnyVehicle(playerid)) { new string[120]; new carid = GetPlayerVehicleID(playerid); if(IsASweeper(carid)) { new cashes=(random(35-10)+10); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); format(string, sizeof(string), "~g~+%d$ ~w~ in plus pentru ca ai curatat!",cashes*4); GameTextForPlayer(playerid, string, 5000, 1); DisablePlayerCheckpoint(playerid); PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + cashes*4; new randomss; randomss = random(sizeof(gSweeperPoints)); SetPlayerCheckpoint(playerid, gSweeperPoints[randomss][0], gSweeperPoints[randomss][1], gSweeperPoints[randomss][2], 5.0); } } return 1; } Care imi poate zice cum as putea face?
-
Salut am si eu un sistem sweeper , si as vrea sa il modific in alt mod De ex dau /startsweep si imi apare primul checkpoint si imi da 50$ din checkpointul ala dispare si apare altu si tot asa Eu as vrea sa fac cand dau /startsweep sa ma duc in primul checkpoint si sa nu imi dea bani sa imi dea la ultimul checkpoint facut de mine si sa se respawneze masina dupa sa o iau iar de la capat cu /startsweep astea sunt checkpointurile new Float:gSweeperPoints[5][3] = { {1148.0198,-1675.4827,13.5063}, {1056.7313,-1709.6992,13.1080}, {1040.1718,-1586.8624,13.1078}, {1115.1776,-1574.6176,13.1173}, {1136.0420,-1611.9484,13.6059} }; aici onplayerentercheckpoint if(PlayerIsSweeping[playerid] == 1) { if(IsPlayerInAnyVehicle(playerid)) { new string[120]; new carid = GetPlayerVehicleID(playerid); if(IsASweeper(carid)) { new cashes=(random(35-10)+10); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); format(string, sizeof(string), "~g~+%d$ ~w~ in plus pentru ca ai curatat!",cashes*4); GameTextForPlayer(playerid, string, 5000, 1); DisablePlayerCheckpoint(playerid); PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + cashes*4; new randomss; randomss = random(sizeof(gSweeperPoints)); SetPlayerCheckpoint(playerid, gSweeperPoints[randomss][0], gSweeperPoints[randomss][1], gSweeperPoints[randomss][2], 5.0); } } return 1; } Care imi poate zice cum as putea face?
-
Salut , cum pot sa scap si eu de aceasta eroare? http://tinypic.com/view.php?pic=2zqrnrs&s=6#.UtF-RdLuIbB
-
Salut am adaugat si eu acest fs in gm si nu imi apare nimic din 3 in 3 minute..nu imi apare nici un mesaj , daca adaug fs merge totul perfect numai daca castig fast eventul imi ia bani care mi ia dat.. #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] = "", xReactionTimer, xCash, bool: xTestBusy ; public OnFilterScriptInit() { xReactionTimer = SetTimer("xReactionTest", TIME, 1); return 1; } public OnFilterScriptExit() { KillTimer(xReactionTimer); return 1; } public OnPlayerText(playerid, text[]) { switch(xTestBusy) { case true: { if(!strcmp(xChars, text, false)) { new string[128], pName[MAX_PLAYER_NAME] ; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "[Fast Event]: %s a scris primul testul si a castigat $%d !", pName, xCash); SendClientMessageToAll(0xC63852C8, string); GivePlayerMoney(playerid, xCash); xReactionTimer = SetTimer("xReactionTest", TIME, 1); xTestBusy = false; } } } return 1; } function xReactionTest() { new xLength = (random(8) + 2), string[128] ; xCash = (random(1500) + 1500); format(xChars, sizeof(xChars), ""); Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]); format(string, sizeof(string), "[Fast Event]: Primul care scrie %s castiga $%d !", xChars, xCash); SendClientMessageToAll(0xC63852C8, string); KillTimer(xReactionTimer); xTestBusy = true; SetTimer("xReactionProgress", 30000, 0); return 1; }
-
Poate sa ma ajute si pe mine cineva?
-
Gireada vreau sa vad in game daca mai poti sa faci asa.. ca am deschis sv odata si intra cineva si imi facea la sv asa..
-
Salut cum fac si eu sa testez antifakekill ce trebuie sa fac pe server ca am bagat un FS cu antifakekill si vreau sa incerc daca merge.Multumesc
-
C:\Documents and Settings\Ionut\Desktop\filterscripts\avs.pwn(1604) : error 033: array must be indexed (variable "VehicleOwner") C:\Documents and Settings\Ionut\Desktop\filterscripts\avs.pwn(1607) : error 033: array must be indexed (variable "VehicleOwner") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. Linia 1603 - if (VehicleOwner [id]) return (1); Linia 1607 - if (!VehicleOwner [id])
-
if(strcmp(cmd, "/av", true) == 0 || strcmp(cmd, "/avehicle", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first ! "); return 1; } new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/av)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: destroy, create, edit, info"); return 1; } if(PlayerInfo[playerid][pAdmin] >= 1338) { if(strcmp(x_nr, "destroy", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: destroy [car id]"); return 1; } new car; new text[20]; car = strval(tmp); if(CarInfo[car][cOwned] == 0) { SendClientMessage(playerid, COLOR_GRAD2, "This is not an ownable car!"); return 1; } CarInfo[car][cOwned] = 0; text = "No-One"; strmid(CarInfo[car][cOwner], text, 0, strlen(text), 999); SendClientMessage(playerid, COLOR_WHITE, "* You sold this car!"); DestroyVehicle(car); SaveCar(car); } else if(strcmp(x_nr,"create",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: create [carmodel] [color1] [color2]"); return 1; } new model; model = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: create [carmodel] [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 && color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: create [carmodel] [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 && color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Wrong color id!"); return 1; } new car = 0; for(new h = 760; h < sizeof(CarInfo); h++) { if(CarInfo[h][cOwned] == 0) { car = h; h = 1500; } } format(string, 128, "cars/%d.ini", car); new Float:AX,Float:AY,Float:AZ,Float:Angle; GetPlayerPos(playerid, AX,AY,AZ); GetPlayerFacingAngle(playerid, Angle); if(dini_Exists(string)) { CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; new text[20]; text = "No-One"; strmid(CarInfo[car][cOwner], text, 0, strlen(text), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = model; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } else { dini_Create(string); CarInfo[car][cID] = car; CarInfo[car][cOwned] = 1; new text[20]; text = "No-One"; strmid(CarInfo[car][cOwner], text, 0, strlen(text), 999); CarInfo[car][cLocationx] = AX; CarInfo[car][cLocationy] = AY; CarInfo[car][cLocationz] = AZ; CarInfo[car][cAngle] = Angle; CarInfo[car][cModel] = model; CarInfo[car][cColorOne] = color1; CarInfo[car][cColorTwo] = color2; SaveCar(car); } ownedcar[car] = CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],CarInfo[car][cAngle],CarInfo[car][cColorOne],CarInfo[car][cColorTwo],300); SendClientMessage(playerid, COLOR_GRAD2, "Type /avehicle to view the vehicle manual!"); } else if(strcmp(x_nr,"edit",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: /edit [statcode] [amount]"); SendClientMessage(playerid, COLOR_GRAD4, "|1 ID |2 Model |3 Owner |4 Owned "); return 1; } new stat; stat = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: /edit [statcode] [amount]"); SendClientMessage(playerid, COLOR_GRAD4, "|1 ID |2 Model |3 Owner |4 Owned "); return 1; } new amount; amount = strval(tmp); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehid = GetPlayerVehicleID(playerid); if(IsAnPersonalCar(vehid)) { switch (stat) { case 1: { CarInfo[vehid][cID] = amount; format(string, sizeof(string), " The Car ID Was Set To %d", amount); SendClientMessage(playerid, COLOR_GREY, string); } case 2: { CarInfo[vehid][cModel] = amount; format(string, sizeof(string), " The Car Model Was Set To %d", amount); SendClientMessage(playerid, COLOR_GREY, string); } case 3: { GetPlayerName(amount, sendername, sizeof(sendername)); strmid(CarInfo[vehid][cOwner], sendername, 0, strlen(sendername), 999); format(string, sizeof(string), " The Car Owner Was Set To %s", sendername); SendClientMessage(playerid, COLOR_GREY, string); } case 4: { CarInfo[vehid][cOwned] = amount; format(string, sizeof(string), " The Car Owned Was Set To %d", amount); SendClientMessage(playerid, COLOR_GREY, string); } } SaveCar(vehid); } else { SendClientMessage(playerid, COLOR_GREY, "This car isn't an personal car"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You must be in an personal car"); return 1; } } else if(strcmp(x_nr,"info",true) == 0) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehid = GetPlayerVehicleID(playerid); format(string, sizeof(string), "Owned: %d | Owner: %s | CarColor1: %d | CarColor2: %d | CarID: %d", CarInfo[vehid][cOwned], CarInfo[vehid][cOwner], CarInfo[vehid][cColorOne], CarInfo[vehid][cColorTwo], CarInfo[vehid][cID]); SendClientMessage(playerid, COLOR_WHITE, string); } } else { SendClientMessage(playerid, COLOR_WHITE, "HINT: (/av)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available names: destroy, create, edit, info"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You must be an admin to use this command"); return 1; } } } trebuie sa dai mi se pare /setstat nume 21 id-ul la masina scri /mycar
-
Ma poate ajuta cineva?