official
-
Posts
60 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Posts posted by official
-
-
Mersi. Totusi nu inteleg commenturile de mai sus, majoritatea spune ca e bun si nustiu ce.. dar ei nici macar nu testeaza/verifica codul. Aiurea. Mersi inca odata.
-
Am dat new si am inceput sa lucrez de pe acest tutorial dar cand am dat compile am primit aceasta eroare
C:UsersAlexDesktopPROJECTXgamemodesproject.pwn(84) : error 035: argument type mismatch (argument 3) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
P_Data[playerid][pParola] = cache_get_field_content_int(0, "Parola", temporar);// i se vaextrage parola si i se verifica daca coincide cu numele. Se foloseste new-ul temporar pentru extragerea parolei, ea retinandu-se temporar(pana cand se deconecteaza jucatorul)
-
Din cate stiam numele il schimbi din baza de date din groups nu sunt sigur daca era asa, dar incearca.
-
-
am asa
SetSpawnInfo(playerid, 0, playerVariables[playerid][pSkin], 1153.8890,-1770.9694,16.5992, 0, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid);
SetSpawnInfo(playerid, 0, 0, 1153.8890, -1770.9694, 16.5992, 0, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); SetPlayerPos(playerid, 220.4862, 1822.8994, 7.5387); SetPlayerFacingAngle(playerid, 268.3423); TogglePlayerControllable(playerid, false);
SetSpawnInfo(extraid, 0, playerVariables[extraid][pSkin], playerVariables[extraid][pPos][0], playerVariables[extraid][pPos][1], playerVariables[extraid][pPos][2], 0, 0, 0, 0, 0, 0, 0);
-
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3z, (C)2005-2014 SA-MP Team [16:31:55] [16:31:55] Server Plugins [16:31:55] -------------- [16:31:55] Loading plugin: crashdetect [16:31:55] CrashDetect v4.15.1 is OK. [16:31:55] Loaded. [16:31:55] Loading plugin: streamer [16:31:55] *** Streamer Plugin v2.7.5.2 by Incognito loaded *** [16:31:55] Loaded. [16:31:55] Loading plugin: wp [16:31:55] [16:31:55] ================== [16:31:55] [16:31:55] Whirlpool loaded [16:31:55] [16:31:55] ================== [16:31:55] [16:31:55] Loaded. [16:31:55] Loading plugin: sscanf [16:31:55] [16:31:55] =============================== [16:31:55] sscanf plugin loaded. [16:31:55] Version: 2.8.1 [16:31:55] (c) 2012 Alex "Y_Less" Cole [16:31:55] =============================== [16:31:55] Loaded. [16:31:55] Loading plugin: mysql [16:31:55] >> plugin.mysql: R39-2 successfully loaded. [16:31:55] Loaded. [16:31:55] Loading plugin: GeoIP_Plugin [16:31:55] GeoIP_Plugin got loaded. [16:31:55] Loaded. [16:31:55] Loading plugin: iTD [16:31:55] * iTD Plugin loaded. (Support for textdraw editor mouse/keyboard) [16:31:55] Loaded. [16:31:55] Loading plugin: libRegEx [16:31:55] [16:31:55] ------------------------------ [16:31:55] | [16:31:55] | -> Regular Expression Plugin v0.2 [16:31:55] | -> Using Oniguruma v5.9.5 [16:31:55] | [16:31:55] ------ (c) 2014, Koala ------- [16:31:55] [16:31:55] Loaded. [16:31:55] Loading plugin: nativechecker [16:31:55] Loaded. [16:31:55] Loaded 9 plugins. [16:31:55] [16:31:55] Filterscripts [16:31:55] --------------- [16:31:55] Loaded 0 filterscripts. [16:31:55] Error: Function not registered: 'SendDeathMessageToPlayer' [16:31:55] [debug] Run time error 19: "File or function is not found" [16:31:55] [debug] SendDeathMessageToPlayer [16:31:55] [debug] Run time error 19: "File or function is not found" [16:31:55] [debug] SendDeathMessageToPlayer [16:31:55] Script[gamemodes/vx-rp.amx]: Run time error 19: "File or function is not found" [16:31:55] Number of vehicle models: 0
-
Arata-ne OnPlayerSpawn.
public OnPlayerSpawn(playerid) { #if defined DEBUG printf("[debug] OnPlayerSpawn(%d)", playerid); #endif PreloadAnimLib(playerid,"BOMBER"); PreloadAnimLib(playerid,"RAPPING"); PreloadAnimLib(playerid,"SHOP"); PreloadAnimLib(playerid,"BEACH"); PreloadAnimLib(playerid,"SMOKING"); PreloadAnimLib(playerid,"ON_LOOKERS"); PreloadAnimLib(playerid,"DEALER"); PreloadAnimLib(playerid,"CRACK"); PreloadAnimLib(playerid,"CARRY"); PreloadAnimLib(playerid,"COP_AMBIENT"); PreloadAnimLib(playerid,"PARK"); PreloadAnimLib(playerid,"INT_HOUSE"); PreloadAnimLib(playerid,"FOOD"); PreloadAnimLib(playerid,"GANGS"); PreloadAnimLib(playerid,"PED"); PreloadAnimLib(playerid,"FAT"); playerVariables[playerid][pWeapons][0] = 0; playerVariables[playerid][pWeapons][1] = 0; playerVariables[playerid][pWeapons][2] = 0; playerVariables[playerid][pWeapons][3] = 0; playerVariables[playerid][pWeapons][4] = 0; playerVariables[playerid][pWeapons][5] = 0; playerVariables[playerid][pWeapons][6] = 0; playerVariables[playerid][pWeapons][7] = 0; playerVariables[playerid][pWeapons][8] = 0; playerVariables[playerid][pWeapons][9] = 0; playerVariables[playerid][pWeapons][10] = 0; playerVariables[playerid][pWeapons][11] = 0; playerVariables[playerid][pWeapons][12] = 0; validResetPlayerWeapons(playerid); SetPlayerColor(playerid, COLOR_WHITE); SetPlayerFightingStyle(playerid, playerVariables[playerid][pFightStyle]); if(TurfsDisp[playerid] == 0) { HideNumbers(playerid); } DamageLog[playerid] = -1; SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 998); SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 998); if(playerVariables[playerid][pPrisonTime] >= 1) { switch(playerVariables[playerid][pPrisonID]) { case 1: { SetPlayerPos(playerid, -26.8721, 2320.9290, 24.3034); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); } case 2: { SetPlayerPos(playerid, 264.58, 77.38, 1001.04); SetPlayerInterior(playerid, 6); SetPlayerVirtualWorld(playerid, 0); } case 3: { SetPlayerInterior(playerid, 10); SetPlayerVirtualWorld(playerid, GROUP_VIRTUAL_WORLD+1); new spawn = random(sizeof(JailSpawns)); SetPlayerPos(playerid, JailSpawns[spawn][0], JailSpawns[spawn][1], JailSpawns[spawn][2]); SetPlayerFacingAngle(playerid, 0); } } return 1; } if(PlayerPaintballing[playerid] != 0) { givePlayerValidWeapon(playerid, 24); givePlayerValidWeapon(playerid, 31); new rand = random(sizeof(gPaintPoints)); SetPlayerInterior(playerid, 10); SetPlayerPos(playerid, gPaintPoints[rand][0], gPaintPoints[rand][1], gPaintPoints[rand][2]); if(pTeam[playerid] == 1) { SetPlayerSkin(playerid, 285); } else if(pTeam[playerid] == 2) { SetPlayerSkin(playerid, 181); } foreach(Player, x) { if(PlayerPaintballing[playerid] != 0 && PlayerPaintballing[x] != 0) { if(pTeam[playerid] == 1) { SetPlayerMarkerForPlayer(playerid, x, COLOR_PD); } else if(pTeam[playerid] == 2) { SetPlayerMarkerForPlayer(playerid, x, COLOR_REPORT); } } } SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 0); return 1; } if((playerVariables[playerid][pPoliceDuty] == 1) && (playerVariables[playerid][pGroup] == 1) && PlayerPaintballing[playerid] == 0) { givePlayerValidWeapon(playerid, 24); givePlayerValidWeapon(playerid, 31); givePlayerValidWeapon(playerid, 29); givePlayerValidWeapon(playerid, 41); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(playerVariables[playerid][pSpawnChange] == 1) { new houseID = getPlayerHouseID(playerid); new houserented = playerVariables[playerid][pRentedHouse]; if(houseID >= 1) { SetPlayerInterior(playerid, houseVariables[houseID][hHouseInteriorID]); SetPlayerVirtualWorld(playerid, HOUSE_VIRTUAL_WORLD+houseID); SetPlayerPos(playerid, houseVariables[houseID][hHouseInteriorPos][0], houseVariables[houseID][hHouseInteriorPos][1], houseVariables[houseID][hHouseInteriorPos][2]); InHouse[playerid] = houseID; /*if(houseVariables[houseID][hStreamType] == 2) { YoutubeStreamForPlayer(playerid, houseVariables[houseID][hStream]); } else if(houseVariables[houseID][hStreamType] == 1) { PlayAudioStreamForPlayer(playerid, houseVariables[houseID][hStream]); }*/ } else { if(houserented >= 1) { SetPlayerInterior(playerid, houseVariables[houserented][hHouseInteriorID]); SetPlayerVirtualWorld(playerid, HOUSE_VIRTUAL_WORLD+houserented); SetPlayerPos(playerid, houseVariables[houserented][hHouseInteriorPos][0], houseVariables[houserented][hHouseInteriorPos][1], houseVariables[houserented][hHouseInteriorPos][2]); InHouse[playerid] = houserented; } else { playerVariables[playerid][pSpawnChange] = 0; } } } if(playerVariables[playerid][pSpawnChange] == 0) { if(playerVariables[playerid][pGroup] == 0) { SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPos(playerid, 1153.8890,-1770.9694,16.5992); } else { new group; group = playerVariables[playerid][pGroup]; SetPlayerInterior(playerid, groupVariables[group][gGroupHQInteriorID]); SetPlayerVirtualWorld(playerid, 20000+group); SetPlayerPos(playerid, groupVariables[group][gGroupInteriorPos][0], groupVariables[group][gGroupInteriorPos][1], groupVariables[group][gGroupInteriorPos][2]); } } SetPlayerToTeamColor(playerid); playerVariables[playerid][pSkinSet] = 1; ResetPlayerWeapons(playerid); givePlayerWeapons(playerid); if(playerVariables[playerid][pEvent] >= 1) playerVariables[playerid][pEvent] = 0; if(playerVariables[playerid][pAdminDuty] == 1) { SetPlayerHealth(playerid, 900000.0); } else { playerVariables[playerid][pHealth] = 100.0; if(playerVariables[playerid][pPoliceDuty] == 1 && PlayerPaintballing[playerid] == 0) { playerVariables[playerid][pArmour] = 100.0; givePlayerValidWeapon(playerid, 24); givePlayerValidWeapon(playerid, 31); givePlayerValidWeapon(playerid, 29); givePlayerValidWeapon(playerid, 41); } else { playerVariables[playerid][pArmour] = 0.0; } SetPlayerHealth(playerid, playerVariables[playerid][pHealth]); SetPlayerArmour(playerid, playerVariables[playerid][pArmour]); } if(!GetPlayerInterior(playerid)) { SetPlayerWeather(playerid, weatherVariables[0]); } else { SetPlayerWeather(playerid, INTERIOR_WEATHER_ID); } SetPlayerSkin(playerid, playerVariables[playerid][pSkin]); /*if(groupVariables[playerVariables[playerid][pGroup]][gInWar] == 0) { foreach(Player, i) { SetPlayerMarkerForPlayer( playerid, i, ( GetPlayerColor( i ) & 0xFFFFFF00 ) ); SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) ); } }*/ syncPlayerTime(playerid); TogglePlayerControllable(playerid, true); return 1; }
Vezi de la pOrigin modifica-i
widuaik nu am porigin in gm.
-
Problema intalnita (descriere): Cand pornesc serverul am aceste erori.
Ero(area / rile) / warning-(ul / urile):---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3z, (C)2005-2014 SA-MP Team [12:40:15] [12:40:15] Server Plugins [12:40:15] -------------- [12:40:15] Loading plugin: wp [12:40:15] [12:40:15] ================== [12:40:15] [12:40:15] Whirlpool loaded [12:40:15] [12:40:15] ================== [12:40:15] [12:40:15] Loaded. [12:40:15] Loading plugin: sscanf [12:40:15] [12:40:15] =============================== [12:40:15] sscanf plugin loaded. [12:40:15] Version: 2.8.1 [12:40:15] (c) 2012 Alex "Y_Less" Cole [12:40:15] =============================== [12:40:15] Loaded. [12:40:15] Loading plugin: mysql [12:40:15] >> plugin.mysql: R39-2 successfully loaded. [12:40:15] Loaded. [12:40:15] Loading plugin: GeoIP_Plugin [12:40:15] GeoIP_Plugin got loaded. [12:40:15] Loaded. [12:40:15] Loading plugin: iTD [12:40:15] * iTD Plugin loaded. (Support for textdraw editor mouse/keyboard) [12:40:15] Loaded. [12:40:15] Loading plugin: libRegEx [12:40:15] [12:40:15] ------------------------------ [12:40:15] | [12:40:15] | -> Regular Expression Plugin v0.2 [12:40:15] | -> Using Oniguruma v5.9.5 [12:40:15] | [12:40:15] ------ (c) 2014, Koala ------- [12:40:15] [12:40:15] Loaded. [12:40:15] Loading plugin: nativechecker [12:40:15] Loaded. [12:40:15] Loading plugin: streamer [12:40:15] Loaded. [12:40:15] Loading plugin: crashdetect [12:40:15] CrashDetect must be loaded before 'streamer.DLL' [12:40:15] Failed. [12:40:15] Loaded 8 plugins. [12:40:15] [12:40:15] Filterscripts [12:40:15] --------------- [12:40:15] Loaded 0 filterscripts. [12:40:15] Error: Function not registered: 'SendDeathMessageToPlayer' [12:40:15] Error: Function not registered: 'CreateDynamic3DTextLabel' [12:40:15] Error: Function not registered: 'CreateDynamicPickup' [12:40:15] Error: Function not registered: 'CreateDynamicObject' [12:40:15] Error: Function not registered: 'MoveDynamicObject' [12:40:15] Error: Function not registered: 'DestroyDynamicObject' [12:40:15] Error: Function not registered: 'SetDynamicObjectRot' [12:40:15] Error: Function not registered: 'DestroyDynamicPickup' [12:40:15] Error: Function not registered: 'DestroyDynamic3DTextLabel' [12:40:15] Error: Function not registered: 'UpdateDynamic3DTextLabelText' [12:40:15] Error: Function not registered: 'CountDynamicObjects' [12:40:15] Error: Function not registered: 'CountDynamicPickups' [12:40:15] Error: Function not registered: 'CountDynamic3DTextLabels' [12:40:15] Error: Function not registered: 'SetDynamicObjectPos' [12:40:15] Script[gamemodes/vx-rp.amx]: Run time error 19: "File or function is not found" [12:40:15] Number of vehicle models: 0
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Nustiu ce sa ii fac -
Oriunde pun
{
FirstSpawn[playerid] = 0;return 1;}Imi da acest warning vx-rp.pwn(9072) : warning 225: unreachable code la urmatoarea linie.Am sters return 1; si nu imi mai da acea eroare deoarece acel return 1; nu ii mai dadea voie sa citeasca scriptul in continuare..Nu ma connecteaza la srv acm. Ramane asa http://imgur.com/32yedAf -
Problema intalnita (descriere): Cateodata ma spawneaza in punctul 0 al jocului si sub pamant mai exact la acea ferma din ls, precizez ca toate coordonatele pentru spawn sunt puse corect.
Ero(area / rile) / warning-(ul / urile): Nu stiu ce sa va dau lasati reply de orice linie aveti nevoie.
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Am incercat , dar degeaba. -
Iti zice ce problema ai in srv log dc nu citesti inainte sa postezi?
-
Problema intalnita (descriere): Cand ii vand cuiva o arma cu /sellgun el chiar daca nu are licenta o poate cumpara.
Ero(area / rile) / warning-(ul / urile):CMD:sellgun(playerid, params[]){if(!IsPlayerConnectedEx(playerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");if(IsPlayerConnected(playerid)){if (playerVariables[playerid][pJob] != 1) return SendClientMessage(playerid,COLOR_GREY,"{FFB870}You are not an Arms Dealer.");new x_weapon[10],weapon[MAX_PLAYERS],price[MAX_PLAYERS],price2,id,giveplayer[25],sendername[25],string[128];if(sscanf(params, "us[10]d",id,x_weapon,price2)){SendClientMessage(playerid, COLOR_WHITE, "Synthax: /sellgun [Name/Playerid] [Gun Name] [Price]");SendClientMessage(playerid, COLOR_WHITE, "Weapons: SDPistol(100) Deagle(150)");SendClientMessage(playerid, COLOR_WHITE, "Weapons: MP5(200) Shotgun(300)");SendClientMessage(playerid, COLOR_WHITE, "Weapons: AK47(350) M4(400) Rifle(600)");return 1;}if(playerid == id) return SCM(playerid,COLOR_WHITE,"{FFB870}You can not sell yourself weapons.");if(price2 >= 5000) return SCM(playerid, COLOR_WHITE, "{FFB870}The maximum sell amount is $5,000!");if(id != INVALID_PLAYER_ID){if(strcmp(x_weapon,"sdpistol",true) == 0){if(playerVariables[playerid][pMaterials] < 100) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}Not enough Materials for that Weapon.");weapon[playerid] = 23;price[playerid] = 100;}else if(strcmp(x_weapon,"deagle",true) == 0){if(playerVariables[playerid][pMaterials] < 150) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}Not enough Materials for that Weapon.");weapon[playerid] = 24;price[playerid] = 150;}else if(strcmp(x_weapon,"mp5",true) == 0){if(playerVariables[playerid][pMaterials] < 200) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}Not enough Materials for that Weapon.");weapon[playerid] = 29;price[playerid] = 200;}else if(strcmp(x_weapon,"shotgun",true) == 0){if(playerVariables[playerid][pMaterials] < 300) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}Not enough Materials for that Weapon.");weapon[playerid] = 25;price[playerid] = 300;}else if(strcmp(x_weapon,"ak47",true) == 0){if(playerVariables[playerid][pMaterials] < 350) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}Not enough Materials for that Weapon.");weapon[playerid] = 30;price[playerid] = 350;}else if(strcmp(x_weapon,"m4",true) == 0){if(playerVariables[playerid][pMaterials] < 400) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}Not enough Materials for that Weapon.");weapon[playerid] = 31;price[playerid] = 400;}else if(strcmp(x_weapon,"rifle",true) == 0){if(playerVariables[playerid][pMaterials] < 600) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}Not enough Materials for that Weapon.");weapon[playerid] = 33;price[playerid] = 600;}else return SendClientMessage(playerid,COLOR_WHITE,"{B8DBFF}Invalid weapon name.");if(price2 < 1 || price2 > 100000) return SendClientMessage(playerid,COLOR_WHITE,"{B8DBFF}Price must be between $1 and $100,000.");if (ProxDetectorS(5.0, playerid, id)){if(playerVariables[id][pMoney] < price2) return SCM(playerid,COLOR_WHITE,"{FFB870}This player don't have money needed.");GetPlayerName(id, giveplayer, sizeof(giveplayer));GetPlayerName(playerid, sendername, sizeof(sendername));SellgunOffer[id] = playerid;SellgunPrice[id] = price2;SellgunMats[id] = price[playerid];SellgunID[id] = weapon[playerid];new gunname[50];GetWeaponName(weapon[playerid],gunname,sizeof(gunname));format(string, sizeof(string), "{B8FFDB}* You offered %s %s for %s$.",giveplayer,gunname,NumberFormat(price2));SendClientMessage(playerid, COLOR_WHITE, string);format(string, sizeof(string), "{B8FFDB}* %s offered you %s for %s$, (type /accept gun) to accept.",sendername,gunname,NumberFormat(price2));SendClientMessage(id, COLOR_WHITE, string);}else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}This player is not near you.");}else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");}return 1;}Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da dar nustiu ce sa fac -
Merg amandoua multumesc.
-
Problema intalnita (descriere):Am pus la /order cand dai sa nu poti lua daca nu ai licenta gun, dar cand dau si nu am licenta gun nu imi apare textul "Ai nevoie de o licenta gun.."
Ero(area / rile) / warning-(ul / urile):CMD:order(playerid, params[]) { new group = playerVariables[playerid][pGroup]; if(playerVariables[playerid][pGunLicense] != 0) if(groupVariables[group][gGroupType] == 0) { if((IsPlayerInRangeOfPoint(playerid, 100.000, groupVariables[group][gGroupInteriorPos][0], groupVariables[group][gGroupInteriorPos][1], groupVariables[group][gGroupInteriorPos][2])) && GetPlayerVirtualWorld(playerid) == GROUP_VIRTUAL_WORLD+group) { if(isnull(params)) { SCM(playerid, COLOR_GREY, "---------------->Gang Order<----------------"); SCM(playerid, COLOR_GREY, "/order 1 - Deagle;"); SCM(playerid, COLOR_GREY, "/order 2 - Shotgun;"); SCM(playerid, COLOR_GREY, "/order 3 - M4A1;"); SCM(playerid, COLOR_GREY, "/order 4 - AK47;"); SCM(playerid, COLOR_GREY, "/order 5 - MP5;"); SCM(playerid, COLOR_GREY, "/order 6 - Rifle;"); SCM(playerid, COLOR_GREY, "/order 7 - Katana."); } else { if(strcmp(params, "1", true) == 0) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 200) { if(playerVariables[playerid][pMoney] >= 1000) { playerVariables[playerid][pWeapons][2] = 24; GivePlayerWeapon(playerid, 24, 200); playerVariables[playerid][pMoney] -= 1000; SCM(playerid, COLOR_GREY, "You have bought a Desert Eagle for $1000. 200 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 1000; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 200; } else { SCM(playerid, -1, "You don't have enough money to purchase this!"); } } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else if(strcmp(params, "2", true) == 0) { if(playerVariables[playerid][pMoney] >= 500) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 150) { playerVariables[playerid][pWeapons][3] = 25; GivePlayerWeapon(playerid, 25, 200); playerVariables[playerid][pMoney] -= 500; SCM(playerid, COLOR_GREY, "You have bought a Shotgun for $500. 150 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 500; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 150; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "3", true) == 0) { if(playerVariables[playerid][pMoney] >= 2000) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 300) { playerVariables[playerid][pWeapons][5] = 31; GivePlayerWeapon(playerid, 31, 300); playerVariables[playerid][pMoney] -= 2000; SCM(playerid, COLOR_GREY, "You have bought a M4A1 for $2000. 300 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 2000; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 300; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "4", true) == 0) { if(playerVariables[playerid][pMoney] >= 2000) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 300) { playerVariables[playerid][pWeapons][5] = 30; GivePlayerWeapon(playerid, 30, 300); playerVariables[playerid][pMoney] -= 2000; SCM(playerid, COLOR_GREY, "You have bought an AK47 for $2000. 300 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 2000; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 300; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "5", true) == 0) { if(playerVariables[playerid][pMoney] >= 2000) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 150) { playerVariables[playerid][pWeapons][4] = 29; GivePlayerWeapon(playerid, 29, 300); playerVariables[playerid][pMoney] -= 750; SCM(playerid, COLOR_GREY, "You have bought an MP5 for $750. 150 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 750; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 150; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "6", true) == 0) { if(playerVariables[playerid][pMoney] >= 1500) { if(playerVariables[playerid][pGroupRank] >= 4) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 400) { playerVariables[playerid][pWeapons][6] = 33; GivePlayerWeapon(playerid,33, 100); playerVariables[playerid][pMoney] -= 1500; SCM(playerid, COLOR_GREY, "You have bought a Rifle for $1500. 400 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 1500; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 400; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have the necessary rank to do this! You need rank 4."); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "7", true) == 0) { if(playerVariables[playerid][pMoney] >= 500) { if(playerVariables[playerid][pGroupRank] >= 5) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 100) { givePlayerValidWeapon(playerid, 8); playerVariables[playerid][pMoney] -= 500; SCM(playerid, COLOR_GREY, "You have bought a Katana for $500. 100 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 500; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 100; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have the necessary rank to do this! You need rank 4."); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } } } } ResetPlayerMoney(playerid); GivePlayerMoney(playerid, playerVariables[playerid][pMoney]); return 1; }
Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Nustiu ce sa ii fac.. -
Problema intalnita (descriere):Am comanda /live merge perfect dar cand vreau sa opresc live dau tot /live id player dar mie nu mi'l pot opri as dori si eu comanda /endlive sau tot cu /live sa imi pot opri si mie liveul
Ero(area / rile) / warning-(ul / urile):CMD:live(playerid, params[]) { new id, szPlayerName2[MAX_PLAYER_NAME]; if(sscanf(params, "u", id)) return SCM(playerid, -1, "Syntax: /live <playerid>"); if(playerVariables[playerid][pGroup] == 3) { if(id != INVALID_PLAYER_ID) { if(id != playerid) { if(playerVariables[id][pLive] == 0) { if(IsPlayerInRangeOfPlayer(playerid, id, 10.0)) { if(playerVariables[id][pGroup] != 3) { playerVariables[playerid][pLive] = 1; playerVariables[id][pLive] = 1; GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME); GetPlayerName(id, szPlayerName2, MAX_PLAYER_NAME); format(szMessage, sizeof(szMessage), "You have started the interview with %s.", szPlayerName2); SCM(playerid, COLOR_LIGHTBLUE, szMessage); format(szMessage, sizeof(szMessage), "%s has started the interview with you.", szPlayerName); SCM(id, COLOR_LIGHTBLUE, szMessage); } else { SCM(playerid, -1, "This player is a reporter!"); } } else { SCM(playerid, -1, "You are not below the player you wish to start the interview with!"); } } else { playerVariables[id][pLive] = 0; GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME); GetPlayerName(id, szPlayerName2, MAX_PLAYER_NAME); format(szMessage, sizeof(szMessage), "You have finished the interview with %s.", szPlayerName2); SCM(playerid, COLOR_LIGHTBLUE, szMessage); format(szMessage, sizeof(szMessage), "%s has finished the interview with you.", szPlayerName); SCM(id, COLOR_LIGHTBLUE, szMessage); } } } else { SCM(playerid, -1, "The player you wish to start the interview with is not connected!"); } } else { SCM(playerid, -1, "You are not a reporter!"); } return 1; }
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Am incercat sa bag o comanda /endlive din alt gm dar nu functioneaza -
te pui si stergi toate conturile/logs
-
Problema intalnita (descriere): As dori ca cineva sa poata pune muzica in casa doar daca cumpara un upgrade la casa si acela sa coste o anumita suma de puncte premium.
Ero(area / rile) / warning-(ul / urile): Nu am erroari
Liniile de cod / sursa / script-ul(obligatoriu):CMD:hmusic(playerid, params[]) { new house = playerVariables[playerid][pHouseKey]; if(getPlayerHouseID(playerid) >= 1) { if(InHouse[playerid] == getPlayerHouseID(playerid)) { ShowPlayerDialog(playerid, DIALOG_HMUSIC, DIALOG_STYLE_LIST, "Server: House Music", "Turn OFFnPro FMnRadio BanditnRadio TarafnRadio ZU[Audio Plugin]nKiss FM[Audio Plugin]nRadio Hot StylenRadio Gangsta DancenRadio Romanian Hip-HopnRadio Romanian ManelenRadio Romanian PopularnRadio GMusic RocknRadio MafianRadio Greu de DifuzatnCustom URL", "Select", "Cancel"); } } else if(house >= 1) { if(InHouse[playerid] == house) { ShowPlayerDialog(playerid, DIALOG_HMUSIC, DIALOG_STYLE_LIST, "Server: House Music", "Turn OFFnPro FMnRadio BanditnRadio TarafnRadio ZU[Audio Plugin]nKiss FM[Audio Plugin]nRadio Hot StylenRadio Gangsta DancenRadio Romanian Hip-HopnRadio Romanian ManelenRadio Romanian PopularnRadio GMusic RocknRadio MafianRadio Greu de DifuzatnCustom URL", "Select", "Cancel"); } } else return SCM(playerid, COLOR_WHITE, "You don't own a house."); return 1; }
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da, ddar fara efect -
pentru /setstat nu cumva ai in gm comanda CMD:set ? :-?
-
Nu va mai chinuiti sa il descarcati daca nu pune include'urile care au fost puse de kruzz.capone,dar bineinteles el doar ca a dat copy-paste nu sa uitat in comenturi sa ia si incl bune.
Mutati topicul la cos nici credite nici sursa nici complet.
-
era nevoie si de new InfoTextShowing[MAX_PLAYER],
ms oricum
-
lafel
-
Am folosit in loc de "hook" "public" si am ramas cu erorile astea
C:UsersRootDesktopDA (2)pawnoincludeShowInfoForPlayer.inc(36) : error 017: undefined symbol "InfoTextShowing" C:UsersRootDesktopDA (2)pawnoincludeShowInfoForPlayer.inc(36) : warning 215: expression has no effect C:UsersRootDesktopDA (2)pawnoincludeShowInfoForPlayer.inc(36) : error 001: expected token: ";", but found "]" C:UsersRootDesktopDA (2)pawnoincludeShowInfoForPlayer.inc(36) : error 029: invalid expression, assumed zero C:UsersRootDesktopDA (2)pawnoincludeShowInfoForPlayer.inc(36) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
Liniile fiind
InfoTextShowing[playerid] = 0;
-
Uite tot include'ul
/* ShowInfoForPlayer include by Richie©. If you dont want to use y_hooks you can move the code from OnPlayerDisconnect(playerid, reason) and OnPlayerConnect(playerid) to those callbacks in your script. To use it, place it under your other includes. */ #include <YSIy_hooks> new PlayerText:InfoText[MAX_PLAYERS], InfoTimer[MAX_PLAYERS]; hook OnPlayerDisconnect(playerid, reason) { PlayerTextDrawDestroy(playerid, InfoText[playerid]); return 1; } hook OnPlayerConnect(playerid) { // Create the textdraw InfoText[playerid] = CreatePlayerTextDraw(playerid, 319.999938, 401.955749, "_"); PlayerTextDrawLetterSize(playerid, InfoText[playerid], 0.241999, 1.280593); PlayerTextDrawAlignment(playerid, InfoText[playerid], 2); PlayerTextDrawColor(playerid, InfoText[playerid], -1); PlayerTextDrawSetShadow(playerid, InfoText[playerid], 0); PlayerTextDrawSetOutline(playerid, InfoText[playerid], 1); PlayerTextDrawBackgroundColor(playerid, InfoText[playerid], 51); PlayerTextDrawFont(playerid, InfoText[playerid], 1); PlayerTextDrawSetProportional(playerid, InfoText[playerid], 1); InfoTextShowing[playerid] = 0; return 1; } stock ShowInfoForPlayer(playerid, text[], time) // playerid to show, text to show, time to show in ms { KillTimer(InfoTimer[playerid]); PlayerTextDrawHide(playerid, InfoText[playerid]); new info[256]; InfoTextShowing[playerid] = 1; format(info, sizeof(info), "%s", text); PlayerTextDrawSetString(playerid, InfoText[playerid], info); PlayerTextDrawShow(playerid, InfoText[playerid]); InfoTimer[playerid] = SetTimerEx("HideInfoForPlayer", time, false, "i", playerid); return 1; } forward HideInfoForPlayer(playerid); // Hide the info message for player. public HideInfoForPlayer(playerid) { if(!IsPlayerConnected(playerid)) return 1; PlayerTextDrawHide(playerid, InfoText[playerid]); InfoTextShowing[playerid] = 0; return 1; }
-
Acm imi da asa http://imgur.com/hgjXjMK..........
Virtual RPG(Original-Wipe RPG)
in Gamemode-uri
Posted
Uitati aici include'urile bune.
http://adf.ly/1Bvrrh
http://adf.ly/1Bvskz