Jump to content

mihai441

Membru
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by mihai441

  1. Primul warning : E:\New Folder\samp\gamemodes\GM\pawno\include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") Iar linia se afla la { : if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0) { for(new h = 0; h < sizeof(SBizzInfo); h++) Iar al doilea warning : E:\New Folder\samp\gamemodes\Indungi HD Rp\gamemodes\Indungi.pwn(14522) : warning 219: local variable "playermoney" shadows a variable at a preceding level public OnPlayerCommandText(playerid, cmdtext[]) { new string[256]; new playermoney; "playermoney" nu mai este definit in script. Ma puteti ajuta?
  2. mihai441

    warn-uri

    Prima linie: if(IsPlayerConnected(i)) { GetPlayerPos(i, oldposx, oldposy, oldposz); new tmpcar = GetPlayerVehicleID(i); if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0) { [color=red][i][b]// aici vine linia 3248[/b][/i][/color] A doua: while (idx < sizeof(SBizzInfo)) { new coordsstring[256]; format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n", SBizzInfo[idx][sbOwned], SBizzInfo[idx][sbOwner], SBizzInfo[idx][sbMessage], SBizzInfo[idx][sbExtortion], SBizzInfo[idx][sbEntranceX], SBizzInfo[idx][sbEntranceY], SBizzInfo[idx][sbEntranceZ], SBizzInfo[idx][sbLevelNeeded], SBizzInfo[idx][sbBuyPrice], SBizzInfo[idx][sbEntranceCost], SBizzInfo[idx][sbTill], SBizzInfo[idx][sbLocked], SBizzInfo[idx][sbInterior], SBizzInfo[idx][sbProducts], SBizzInfo[idx][sbMaxProducts], SBizzInfo[idx][sbPriceProd]); if(idx == 0) { file2 = fopen("sbizz.cfg", io_write); } else { [color=red][size=18pt][i][b]// aici vine linia [/b][/i][/size][/color] file2 = fopen("sbizz.cfg", io_append); } fwrite(file2, coordsstring); idx++; fclose(file2); } return 1; } // iar la ultimele nu pot sa pun // deoarece verifica numele si fara ele da eroare, sunt puse la sfarsit in genul asta : CapsOnEnd(name[]) { new sz; sz=strlen(name[0]); if(CHC_IsUpper(name[sz-1])) return 1; if(CHC_IsUpper(name[FirstSeperationLoc(name[0])-1])) return 1; return 0; }
  3. mihai441

    warn-uri

    Am si eu niste erori si nu stiu cum sa le rezolv (din cauza lor am buguri la HQ-uri) E:\Indungi HD Rp\pawno\include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") E:\Indungi HD Rp\gamemodes\Indungi.pwn(14522) : warning 219: local variable "playermoney" shadows a variable at a preceding level E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "CapsOnEnd" E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "ConsecutiveCaps" E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "IsInvalid" E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "NumOccurences" E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "TooManyCaps" E:\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "TooShortOnEnd" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 8 Warnings. Nu am randul 53139 ultimul rand este 53138. Puteti sa ma ajutati?
  4. merge :X multumesc mult puteti da tc
  5. eu vreau sa raspunda comanda numai daca playerul care o utilizeaza se numeste KoBrA si nu imi dau seama cum sa fac :-*
  6. am gasit care e cauza dar nu stiu cum sa fac sa se deschida daca numele e KoBrA .. eu facusem daca am SkillFish 175 si imi dadusem si mie la fel da tot nu se deschide
  7. dar nu imi apare "Ai deschis poarta" ca sa execute comanda :-\
  8. am facut o poarta si vreau sa se deschida daca playerul apasa click , daca este langa poarta , daca se numeste .... am facut ceva da nu merge #include <a_samp> #define COLOR_YELLOW 0xFFFF00AA #define COLOR_BLUE 0x2641FEAA #define FILTERSCRIPT forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); forward GateClose(); new casa; enum pInfo { pFishSkill, }; new PlayerInfo[MAX_PLAYERS][pInfo]; public OnFilterScriptInit() { casa = CreateObject(980, 1497.9704589844, -700.01293945313, 96.523391723633, 0, 0, 0); CreateObject(1239, 70.946022033691, -1523.2164306641, 4.0335631370544, 0, 0, 0); CreateObject(1872, 2484.0852050781, -1664.6156005859, 12.34375, 0, 0, 0); CreateObject(7505, 2470.2509765625, -1650.9846191406, 14.024735450745, 0, 0, 0); CreateObject(3749, 1497.7768554688, -698.67248535156, 99.608413696289, 0, 0, 0); CreateObject(3877, 1508.0806884766, -699.92834472656, 95.409622192383, 0, 0, 0); CreateObject(3877, 1487.1959228516, -700.11193847656, 95.415740966797, 0, 0, 0); CreateObject(3528, 1497.4173583984, -700.74462890625, 105.40616607666, 0, 0, 262); CreateObject(9833, 1481.1741943359, -685.87902832031, 107.33651733398, 0, 0, 0); CreateObject(9833, 1512.4923095703, -685.88250732422, 107.16002655029, 0, 0, 0); } public OnFilterScriptExit() { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_FIRE) { if(PlayerToPoint(5,playerid,1497.7893,-700.6332,94.7500)) { if (PlayerInfo[playerid][pFishSkill] == 785) { MoveObject(casa, 1497.9704589844, -700.01293945313, 90.773391723633, 5.5); SetTimer("GateClose", 2000, 0); SendClientMessage(playerid, COLOR_BLUE,"Ai deschis poarta"); return 1; } } } return 0; } public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) { if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } } return 0; } public GateClose() { MoveObject (casa,1497.9704589844, -700.01293945313, 96.523391723633, 2.5); return 1; } nu apare eroare dar nu se deschide ma puteti ajuta?
  9. Am creat 4 npc care merg cu autobuzul prin oras si se opresc la statii .. totul merge perfect dar cand un player se apropie de unul dintre ei se respawneaza din locul unde a fost prima data :'( ma puteti ajuta?
  10. f(distance > maxspeed && PlayerInfo[i][pAdmin] < 1) { new tmpcar = GetPlayerVehicleID(i); if(!IsAPlane(tmpcar)) { GetPlayerName(i, plname, sizeof(plname)); format(string, 256, "AdmWarning: [%d]%s %.0f mph (vehicle)",i,plname,distance); ABroadCast(COLOR_YELLOW,string,1); } } } } vreau ca regula sa fie exclusa pentru npc , ma puteti ajuta?. multumesc anticipat
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.