-
Posts
194 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
News
Documentation
Posts posted by Mark S.
-
-
Buna ziua, am creat un textdraw sa afiseze vehiculul in care sunt si am vehiculul intr-un patrat negru , vreau sa fie 100% transparent patratul dar nu reusesc
TextDrawVeh = TextDrawCreate(562.777526, 325.333435, "_");
TextDrawFont(TextDrawVeh, TEXT_DRAW_FONT_MODEL_PREVIEW);
TextDrawTextSize(TextDrawVeh, 78.559295, 80.916648);
TextDrawUseBox(TextDrawVeh,0);
TextDrawSetPreviewRot(TextDrawVeh, 0.000000, 0.000000, 320.000000, 1.000000);
onplayerstatechangenew vehicleid = GetPlayerVehicleID(playerid);
new modelid = GetVehicleModel(vehicleid);
TextDrawSetPreviewModel(TextDrawVeh[playerid], modelid);
Am incercat sa adaug mai multe culori la background si box si tot asa, nu dispare patratul negru,TextDrawBackgroundColor(TextDrawVeh, 0xFFFFFFAA);
TextDrawBoxColor(TextDrawVeh, 0xFFFFFFAA );
P.S. : Poate vi se pare ciudat ce am incercat, Am copiat exact textdraw pe versiunea de server 0.3z iar acolo se vede doar masina fara patrat negru, iar apoi cand am pus pe 0.3.7 se vede negru patratul, uitati despre ce e vorba: -
Foarte tare merge perfect,
si inca ceva:
Daca ma lasi sa modific ceva la comanda cateva lucruri
if (strcmp(cmd, "/hackers", true) == 0) { if(PlayerData[playerid][pAdmin] < 1) return SendClientMessage(playerid, 0xEF88F2FF, "Nu ai acces"); SendClientMessage(playerid, 0x5DE85FFF, "|---- Playeri Online cu s0B -----|"); new count = 0, str[200], pName[MAX_PLAYER_NAME]; if(count == 0) return SendClientMessage(playerid, 0x99D45BFF, "Nu ai nici un player cu s0B pe server"); else { for(new i = 0; i < MAX_PLAYERS; i++) { GetPlayerName(i, pName, sizeof(pName)); if(Hacker == 1) { count++; format(str, sizeof(str), "%s[%d] ,",pName, i); SendClientMessage(playerid, 0xEF88F2FF, str); format(str, sizeof(str), "Sunt %d playeri cu s0B",count); SendClientMessage(playerid, 0xEF88F2FF, str); } } } return 1; }
- 2
-
Am rezolvat. Mersi pentru warn.
-
Am schimabt variabila care salveaza secundele, ma uit pe baza de date 180 secunde, intru pe server ma spawnez, dau refresh la baza de date si se face 7variabila (7 pentru ca atat a trecut pana sa bag jocul in bara si sa dau refresh pe phpmyadmin)
-
Este pe mysql si se salveaza in baza de date
Pe phpmyadmij apare cat trebuie, cand dau /q tot apare. Si cand intru pe server intru pe phpmyadmin si apare 0 se reseteaza.
-
Problema intalnita (descriere): Nu se salveaza timpul la playeri intra pe server si apare ca au jucat 10 minute sau cat au jucat, dau relog si se reseteaza timpul.
Ero(area / rile) / warning-(ul / urile): zero
Liniile de cod / sursa / script-ul(obligatoriu):La un timer de o secunde am asta
PlayerInfo[pConnectTime] ++; Update(i, pConnectedTimex);
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Am cautat in gm cu ctrl+f asta " ConnectTime] = 0 "si am gasit doar cand faci contul prima data si nu este altundeva.
-
Ok multumesc pe viitor sa stie toata lumea ca nu e nimic de ei m-am convins singur.
-
Vreau sa iau un host de samp si unul de cs
Si am gasit pentru cs si samp aici la acest site <fara reclama la cretini> stiti alte programe inafara de filezile prin care pot edita datele? -
Ma ajuta cineva?
-
Acelasi lucru, doar ca acum trebuie sa scriu /money 0 123 123 , adica trebuie sa scriu 2 chestii
-
Problema intalnita (descriere): Am un server pe mysql mergea bine si decand am editat prin el comenzile, pica serverul cand folosesc comenzile /money si /setstat(doar astea 2 am observat eu)
Ero(area / rile) / warning-(ul / urile): in server .log[22:46:07] [22:46:07] Server RP-RPG Load [22:46:07] _____________________ [22:46:07] [22:46:07] Number of vehicle models: 93 [22:46:22] Incoming connection: 127.0.0.1:53961 [22:46:22] [join] Selby. has joined the server (0:127.0.0.1) [22:46:36] Selby. has logged in. [22:46:55] [part] Selby. has left the server (0:0) [22:47:26] Incoming connection: 127.0.0.1:63964 [22:47:26] [join] Selby. has joined the server (0:127.0.0.1) [22:47:34] Selby. has logged in. [22:47:40] [debug] Server crashed while executing server.amx [22:47:40] [debug] AMX backtrace: [22:47:40] [debug] #0 native fwrite () [004056e0] from samp-server.exe [22:47:40] [debug] #1 00035f1c in ?? () from server.amx [22:47:40] [debug] #2 0016594c in public OnPlayerCommandText () from server.amx [22:47:40] [debug] System backtrace: [22:47:40] [debug] #0 00493990 in ?? () from C:UsersADesktopserverresamp-GOV - Copyserver RPG samp-server.exe [22:47:40] [debug] #1 0040531e in ?? () from C:UsersADesktopserverresamp-GOV - Copyserver RPG samp-server.exe
Liniile de cod / sursa / script-ul(obligatoriu):
if(strcmp(cmd, "/money", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /money [playerid/numejucator] [money]"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 7) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { ResetPlayerCash(playa); ConsumingMoney[playa] = 1; GivePlayerCash(playa, money); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(playa, giveplayer, sizeof(giveplayer)); new year, month,day; getdate(year, month, day); format(string, sizeof(string), "/money: %s set %s's money to $%d using /money (%d-%d-%d)", sendername, giveplayer, money, month, day, year); MoneyLog(string); format(string, sizeof(string), "{1580EA}/money: {FFFFFF}%s a setat banii lui %s pe $%d folosind /money (%d-%d-%d)", sendername, giveplayer, money, month, day, year); ABroadCast(COLOR_YELLOW,string,1); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai rangul administrativ necesar!"); } } return 1; }
nu cred ca e de la comenzi, adica am pus comenzile vechi si tot asa face, de la ce o fi problema nu stiu sa rezolv erori mysql decat pwn.
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da am incercat sa pun comenzile vecchi de cand era gm ul needitat -
Atunci cand te urci in masini si zice ca e de vanzare acolo e problema cauta exact ce iti scrie cand te urci in masina
Cauta in gm unde scrie asta si posteaza.
-
Am rezolvat, Multumesc oricum.
-
Posteaza ce ai schimbat ce ai modificat
-
Problema intalnita (descriere): Salut, cand intru in masina de karting nu vrea sa imi dea mesaj
Ero(area / rile) / warning-(ul / urile): nu am
Liniile de cod / sursa / script-ul:if(newstate == PLAYER_STATE_DRIVER) { if(PlayerKarting[playerid] != 0) { if(GetPlayerVehicleID(playerid) >= 282 || GetPlayerVehicleID(playerid) < 300) { PlayerInKart[playerid] = 1; SendClientMessage(playerid,COLOR_GREY,"Acum esti in cursa"); KartingPlayers ++; } } if(GetPlayerVehicleID(playerid) >= 282 || GetPlayerVehicleID(playerid) < 300) { if(PlayerKarting[playerid] == 0) { SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}Karting: {FFFFFF}Mai intai trebuie sa te inscrii in cursa la intrarea cladirii!"); RemovePlayerFromVehicle(playerid); } } if(GetPlayerVehicleID(playerid) >= 282 || GetPlayerVehicleID(playerid) < 300) { SendClientMessage(playerid,COLOR_GREY,"Pentru a putea participa la curse cumpara un bilet /buyticket"); }
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da, am incercat si cu variabila if(IsAKartCar(vehicleid)) -
Problema intalnita (descriere): Nu pot face sa se vada gangzoneul
Ero(area / rile) / warning-(ul / urile): nu am
Liniile de cod / sursa / script-ul:
enum TDATA
{
Float:tfminx,
Float:tfminy,
Float:tfmaxx,
Float:tfmaxy,
tfaction,
tid,
tcolor[20]
}
new tInfo[MAX_TERITORIES][TDATA];
forward OnTurfsLoads();
new Teritoriu[sizeof(tInfo)];la onplayerspawn
am asta si nu se vede
for(new i = 0; i < sizeof(tInfo) ; i++)
{
new file[123];
format(file, sizeof(file),"LARP/Ganguri/%d.ini", i)
GangZoneShowForPlayer(playerid, Teritoriu, 0x2680D9C8);
}si
public OnTurfsLoads()
{
new file[64];
new string[123];
for(new idx = 0; idx < sizeof(tInfo) ; idx++)
{
format(file, sizeof(file),"LARP/Ganguri/%d.ini", idx)
if(dini_Exists(file))
{
tInfo[idx][tfminx] = dini_Float(file,"Entrance_X");
tInfo[idx][tfminy] = dini_Float(file,"Entrance_Y");
tInfo[idx][tfmaxx] = dini_Float(file,"Exit_X");
tInfo[idx][tfmaxy] = dini_Float(file,"Exit_Y");
tInfo[idx][tfaction] = dini_Int(file,"Factiunea");
tInfo[idx][tid] = dini_Int(file,"Id");
tInfo[idx][tcolor] = dini_Int(file,"Color");
format(string, 256, " teritoriu %d incarcat",idx);
print(string);
}
}
return 1;
}si scrie in server ca sa incarcat teritoruul 1 si 2 dar nu stiu cum sa il fac sa il arate
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: -
Salut la linia public ongamemodeinit()
pune linia asta
UsePlayerPedAnims();dai compilare si vezi daca merge
-
Acesta este anti bullet?
&
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ ){ if( hittype != BULLET_HIT_TYPE_NONE ) // Bullet Crashing uses just this hittype { if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) ) // a valid offset, it's impossible that a offset bigger than 1000 is legit (also less than -1000.0 is impossible, not used by this hack, but still, let's check for it, just for the future, who knows what hacks will appear). The object with biggest offset is having ~700-800 radius. { /* If you want, here you can kick the cheater */ return 0; // let's desynchronize that bullet, so players won't crash } } return 1;}
Il folosesc eu dar nu stiu daca merge. -
Multumesc foarte mult ce pot sa spun.
-
salut, se inchide serverul cand il deschid
[21:16:24] [ERROR] CMySQLConnection::Connect - (error #1045) Access denied for user 'root'@'localhost' (using password: YES)
[21:16:24] [ERROR] CMySQLConnection::Connect - (error #1045) Access denied for user 'root'@'localhost' (using password: YES)
-
Cauta eroarea pe google poate e o problema des intalnita si unii au gasit rezolvarea
- 1
-
switch(ExistFileInClient(player_ip, "d3d9.dll"))
{
case EXISTE: SendClientMessage(playerid, -1, "Ai s0b.");
case SEM_CONEXAO: SendClientMessage(playerid, -1, "Ai s0b");
case NEXIST: SendClientMessage(playerid, -1, "succes.");
}
-
inainte de native pune asta
WasteDeAMXersTime()
{
new b;
#emit load.pri b
#emit stor.pri b
} -
Cauta in gm "main()"
o sa arata cam asa
main()
{
}Daca nu gasesti nimic adauga in gm asta
native ExistFileInClient(ip[], file[]);
#define EXISTE 002
#define NEXIST 001
#define SEM_CONEXAO 100
#define ERRO_FUNCAO 000
main()
{
WasteDeAMXersTime();
}Compileaza si intra pe server sa vezi daca merge
Ajutor dialog
in Arhivă probleme
Posted · Edited by Selby
Da dar functia aia are ceva de genu
ca asta intreaba cum selecteaza idul playerului selectat