Jump to content

adv1337

Membru
  • Posts

    26
  • Joined

  • Last visited

Everything posted by adv1337

  1. Problema s-a rezolvat, acum checkpoint-urile functioneaza cum trebuie doar ca problema era la ShoWplayersMarkers era pe 0, trebuia pe 2, Multumiri @Eyser
  2. la onplayerstreamin if(IsInWar1(playerid) && IsInWar1(forplayerid) || IsInWar2(playerid) && IsInWar2(forplayerid)) { new zone = GetPlayerZone(playerid); if(zone == -1 || TakeON[zone] == 0 || !IsPlayerInZone(forplayerid, zone)) { SetPlayerMarkerForPlayer( playerid, forplayerid, ( GetPlayerColor( forplayerid ) & 0xFFFFFF00 ) ); SetPlayerMarkerForPlayer( forplayerid, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) ); } }
  3. Eventual hai pe un discord sa vorbim in timp-real. adv #0584
  4. Am mai adaugat dupa count++ un SetPlayerMarkerForPlayer(42, 1, (GetPlayerColor(1) & 0xFFFFFF00)); dar nu merge.
  5. function GetPlayersInZone(zoneid, teamid, vw) { new count; foreach(new i : Player) { new faction = PlayerInfo[pMember] + PlayerInfo[pLeader]; if(IsPlayerConnected(i) && faction == teamid && IsPlayerInZone(i, zoneid) && GetPlayerVirtualWorld(i) == vw) { if(IsAfk == 0 || (IsAfk == 1 && AFKMins < 2)) { count++; } } } return count; }
  6. Sa arate jucătorii pe turf, asta ma intereseaza
  7. Cum ati vazut din titlu, cum as putea sa creez un checkpoint unde se afla playerul intra pe turf?
  8. adv1337

    Inc files

    deci, o rezolvare? nu merge cand l-am pus in pawno>includes si dupa am bagat in gamemode cu #include
  9. adv1337

    Inc files

    exact asa am facut, si am primit erori, am scris gresit in intrebare.
  10. adv1337

    Inc files

    Cum instalezi fisiere .inc? Am incercat sa le bag in include pawno, sa le dau cu include in gamemode dar primesc erori
  11. @Koqs un discord, eventual sa vorbim in timp real, probleme peste probleme.
  12. Problema asta s-a rezolvat, comanda merge, totul e in regula si frumos, dar cand intru in obiect nu dispare, solutii? eventual discord pentru a vorbii in timp real
  13. Cum as putea sa dau update la include? Daca ma pot lamurii,te rog!
  14. Si ce as putea sa fac, incat sa ma poti lamuri?
  15. Cand comanda e activata cu toate define-urile da eroare la un alt define carr e totul inregula cu el, comanda asta e pe la linia 30k..
  16. \pawno\include\SW.inc(204) : error 001: expected token: ";", but found "if" EROAREA COD: CMD:oplace(playerid, params[], help) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti logat!"); if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly); if(eventobjects > 9) return SCM(playerid, COLOR_WHITE,"You can't place more than 10 objects."); new objectid,prize,sendername[30],Float:pX,Float:pY,Float:pZ,string[128]; if(sscanf(params, "dd",objectid,prize)) { SendClientMessage(playerid, COLOR_WHITE,"{AB0000}Usage: {FFFFFF}/oplace <Object (Id object)> <Prize>"); SendClientMessage(playerid, COLOR_WHITE,"[OBJECTS] Cadou: 19054 - 19058 | Glob craciun: 19059 - 19063 | Oua paste: 19341 - 19345"); return 1; } if(prize < 1 || prize > 10000000) return SendClientMessage(playerid, COLOR_WHITE, "Prize must be between $1 and $10,000,000."); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerPos(playerid,pX,pY,pZ); eventobjects++; objectevent[eventobjects] = CreatePickup(objectid, 1, pX+2,pY,pZ, -1); eventprizeobj[eventobjects] = prize; format(string,sizeof(string),"Admin %s[admin:%d] started an event. Object: %d, prize: $%s.",sendername,PlayerInfo[playerid][pSQLID],objectid,FormatNumber(prize)); ABroadCast(COLOR_RED2, string,1); Adminlog(string); return 1; }
  17. CMD:vre(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You need to login first."); if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_ERROR, "Nu ai gradul necesar ca sa folosesti aceasta comanda!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You need to be in a vehicle."); new found = 0; for(new i = 0; i < sizeof(VehToDestroy) && found == 0; i++) { if(VehToDestroy == GetPlayerVehicleID(playerid)) { vDBID[ VehToDestroy ] = 0; DestroyVehicle(VehToDestroy); VehToDestroy = 1; found = 1; } } if(found == 0)SendClientMessage(playerid, COLOR_ERROR, "You can't destroy this vehicle."); return 1; } Can't destroy this car, si e masina simpla
  18. adv1337

    checkv

    enum cInfo { cID,
  19. adv1337

    checkv

    CMD:checkv(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LIGHTGREEN3, AdminOnly); new id,string[256],count; if(sscanf(params, "u",id)) return SendClientMessage(playerid, COLOR_GREY, "Syntax:{FFFFFF} /checkv [name/playerid]"); if(IsPlayerConnected(id)) { for(new v; v < MAX_PERSONAL_VEHICLES; v++) { if(PlayerInfo[id][cID][v] != 0) { format(string,sizeof(string),"[ID:%d] %s | age: %d | km: %.0f | colors: %d, %d",PlayerInfo[id][pCarID][v],aVehicleNames[PlayerInfo[id][pCarModel][v] - 400],GetDaysFromTimestamp(PlayerInfo[id][pCarBuyTime][v]),PlayerInfo[id][pCarKM][v],PlayerInfo[id][pCarColor1][v],PlayerInfo[id][pCarColor2][v]); SendClientMessage(playerid, COLOR_LIGHTGREEN3, string); count++; } } if(count == 0) return SendClientMessage(playerid, COLOR_WHITE, "This player don't have a vehicle spawned."); } return 1; } Urmatoarele Erori (24438) : error 029: invalid expression, assumed zero (24440) : warning 213: tag mismatch (24440) : error 001: expected token: ")", but found "[" (24440) : error 029: invalid expression, assumed zero (24440) : warning 215: expression has no effect (24440) : error 001: expected token: ";", but found "]" Linia 24440: if(PlayerInfo[id][cID][v] != 0) Linia 24438:for(new v; v < MAX_PERSONAL_VEHICLES; v++)
  20. Dupa ce new CanSpectate[MAX_PLAYERS]; eroare de mai sus
  21. 27031) : error 029: invalid expression, assumed zero ?
  22. Salut, la comanda /goto si /gethere vreau ca player-ul sa intre in masina automat, nu langa masina. Comanda /goto:https://pastebin.com/qHAX04z9 Comanda /gethere:https://pastebin.com/tQP4yZPN 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.