Jump to content

tyger

Membru
  • Posts

    22
  • Joined

  • Last visited

tyger's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Nu pot sa postez sursa deoarece nu stiu de la ce ar putea sa apara acea problema. Nu pot posta nici gamemode-ul deoarece nu este unul care se gaseste pe net.
  2. Problema intalnita: Problema spawn masini in gamemode stunt. Ero(area / rile) / warning-(ul / urile): Nu am unele momentan. Codul sursa [daca este cazul](pastebin): Se afla in gamemode problema, nu il pot posta. Imagini / Video cu problema: Nu am momentan, sunt la munca si nu pot sa fac. Ce ai incercat sa faci?: Schimb cateva chesti care nu ai influentat cu nimic. Explicare problema(o adaugare de mine daca se poate): Problema consta in felul urmator: Cand un player isi ia de exemplu un nrg si ii pune neoane iar dupa un timp indelungat alt player tasteaza si el /nrg este posibil sa primeasca nrg-ul acelui player care l-a tunat. Problema nu apare imediat, ea apare la 1-2 zile sau in functie de cati playeri au jucat si cate vehicule au spawnat in total. Eu m-am gandit sa fac de un script in care atunci cand iesi din vehicul sa dispara acea masina in 15 secunde, dar am pus si alta problema deoarece am si un sistem de masini personale si nu vreau sa fie influentat de acel script. Am mai observat ca se incurca id-urile masinilor la un momentdat cand apare acea problema, practic se schimba id-urile vehiculelor si poate asta ar fi si problema. Ma puteti ajuta in rezolvarea acestei probleme? Multumesc!
  3. Lasa link de login de la baza de date ca sa vedem ce ip ai. Adica unde te loghezi tu ca sa pui baza de date Unele firme au www.domeniu.com/phpmyadmin Normal deschizi cmd si scri ping domeniu.com si ip de acolo il folosesti domeniu.com e un exemplu, depinde de linkul tau.
  4. Salutare Am o functie care imi updateaza in baza de date banurile, problema este ca in loc sa imi insereze Numele adminul care a dat ban si numele banatului imi insereaza ID-urile conturilor lor. Ma puteti ajuta sa rezolv? Las functia mai jos: forward Banlog(ip[],psql,asql,reason[],day); public Banlog(ip[],psql,asql,reason[],day) { new query[500]; new y,m,d,h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(query,sizeof(query),"INSERT INTO banlog (`ip`,`player`,`admin`,`reason`,`day`,`time`) VALUES ('%s','%d','%d','%s','%d','%02d/%02d/%d %02d:%02d:%02d')",ip,psql,asql,reason,day,d,m,y,h,mi,s); mysql_query(SQL,query); return 1; } CMD:banex(playerid, params[]) { new name[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] >= 1) { new giveplayerid,days,reason[128],string[128],giveplayer[25]; if(sscanf(params, "uds[128]", giveplayerid,days,reason)) return SCM(playerid,COLOR_WHITE,"Tasteaza: /banex <Name/Playerid> <day> <Reason>"); if(IsPlayerConnected(giveplayerid)) { if(days <= 0 || days > 1000) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Day! (1-1000)"); GetPlayerName(playerid, name, sizeof name); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); new year,month,day; getdate(year, month, day); day += days; if (IsMonth31(month)) { if (day > 31) { month += 1; if (month > 12) { year += 1; while(day > 31) day -= 31; } else while(day > 31) day -= 31; } } else if (!IsMonth31(month)) { if (day > 30) { month += 1; if (month > 12) { year += 1; while(day > 30) day -= 30; } else while(day > 30) day -= 30; } } else if (!IsMonth31(month) && IsMonth29(year) && month == 2) { if (day > 29) { month += 1; if (month > 12) { year += 1; while(day > 29) day -= 29; } else while(day > 29) day -= 29; } } else if (!IsMonth31(month) && !IsMonth29(year) && month == 2) { if (day > 28) { month += 1; if (month > 12) { year += 1; while(day > 28) day -= 28; } else while(day > 28) day -= 28; } } PlayerInfo[giveplayerid][pBTemp] = 1; PlayerInfo[giveplayerid][pBYear] = year; PlayerInfo[giveplayerid][pBMonth] = month; PlayerInfo[giveplayerid][pBDay] = day; strmid(PlayerInfo[giveplayerid][pBBy], name, 0, strlen(name), 255); strmid(PlayerInfo[giveplayerid][pBReason], reason, 0, strlen(reason), 255); Update(giveplayerid,pBTempx); Update(giveplayerid,pBYearx); Update(giveplayerid,pBMonthx); Update(giveplayerid,pBDayx); Update(giveplayerid,pBByx); Update(giveplayerid,pBReasonx); if(days == 1) { format(string,128,"AdmCmd: %s a fost banat de %s pentru %d zile, motiv: %s",giveplayer,name,days,reason); SendClientMessageToAll(0xf03337FF,string); } else if(days > 1) { format(string,128,"AdmCmd: %s a fost banat de %s pentru %d zile, motiv: %s",giveplayer,name,days,reason); SendClientMessageToAll(0xf03337FF,string); } new ip[25]; GetPlayerIp(giveplayerid, ip, sizeof(ip)); Banlog(ip,PlayerInfo[giveplayerid][pSQLID],PlayerInfo[playerid][pSQLID],reason,days); KickEx(giveplayerid); } else return SendClientMessage(playerid, COLOR_WHITE, "Jucatorul nu este conectat."); } else return SendClientMessage(playerid,COLOR_WHITE,AdminOnly); return true; } 1. Cred ca e de la public Banlog deoarece psql si asql nu sunt definite ca sa imi updateze numele. 2. pSQLID imi defineste id-ul contului in baza de date. Pot sa creez si o functie la fel pt tabelul name daca este necesar. Va rog sa ma ajutati sa rezolv.
  5. Ma ajutat Ph0eniX sa rezolv problema! Problema era de la pluginul mysql.so de la streamer ! Puteti sa dati T/C!
  6. Nu merge am incercat tot asa face :-( Daca vrei sa ma ajuti pe skyep sau mess add: Yahoo: tyger.speed Skype: tyger.speed
  7. Salutare! Nu imi citeste server-ul gm-ul Uitati server_log.txt Am lasat Attchaments! 890_.txt
  8. Am rezolvat! Puteti da Off Topic!
  9. Uitati linia: else if ( iTag == tagof( hex: ) || iTag == tagof( Hex: ) ) Dar va dau si tot ce se afla in fisier : http://pastebin.com/fV6qbyW0
  10. Salutare am o eroare la compilare! Va org frumos sa ma ajutati! D:\Servere\SA-MP\Roleplay\pawno\include\numbers.inc(112) : error 020: invalid symbol name ""
  11. Te rog eu mult ma poti ajuta? Adauga id mess: Si id skype: Sau lasami id tau aici (sau pm)ca imi face fite messu!
  12. Salutare sa-mp.ro Am si eu un sv de samp si imi da eroare la compilare va las cateva poze. Apare asta cand compilez: Si linia unde a dat eroare este: [img width=500 height=245] Va rog eu mult sa ma ajutati! Care ma ajuta dau host samp 30 sloturi port 7888 !
  13. Cum pui o masina in samp pe server?
  14. tyger

    Comada unban

    Baga id meu in lista il gasesti aici id meu: http://skyhost.redirectme.net/id.txt
  15. tyger

    Comada unban

    Imi da erorile urmatoare: D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : error 017: undefined symbol "PlayerInfo" D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : warning 215: expression has no effect D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : error 001: expected token: ";", but found "]" D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : error 029: invalid expression, assumed zero D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
×
×
  • 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.