-
Posts
185 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by MrAndrei
-
Daca sterg timer-ul sau publicul findtime() , checkpointul nu se va mai plimba dupa jucator.
-
Ramane checkpointul pe mapa.
-
Le-am adaugat la /removecp, sper ca am facut bine. Am testat si fara succes. La fel.
-
if(strcmp(cmd, "/removecp", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid, COLOR_WHITE, "* Checkpointul de pe harta a fost sters cu succes!"); DisablePlayerCheckpoint(playerid); } return 1; }
-
Problema intalnita (descriere): Problema Find. Am configurat comanda /find, am urmat tutorialul facut de Maurice cu configurare find, am reusit, insa, daca dau /removecp sau /cancel find, checkpointul de la find ramane activ.Ero(area / rile) / warning-(ul / urile): -Liniile de cod / sursa / script-ul(obligatoriu): Comanda /find: if(strcmp(cmd, "/find", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] != 1) { SendClientMessage(playerid, COLOR_WHITE, "* Nu detii jobul detectiv."); return 1; } if(UsedFind[playerid] != 0 && PlayerInfo[playerid][pDetSkill] < 0) { SendClientMessage(playerid, COLOR_WHITE, "Ai cautat deja pe cineva, asteapta 2 minute pentru a folosi din nou aceasta comanda!"); return 1; } new tmp[145]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_SYN, "Synthax: /find <playerid/PartOfName>"); return 1; } targetid = ReturnUser(tmp); if(IsPlayerConnected(targetid)) { if(targetid != INVALID_PLAYER_ID) { new points; new giveplayerid; new giveplayer[MAX_PLAYER_NAME]; GetPlayerName(targetid, pName, sizeof(targetid)); new Float:X,Float:Y,Float:Z; GetPlayerPos(targetid, X,Y,Z); SetPlayerCheckpoint(playerid, X,Y,Z, 3.0 ); FindTime[playerid] = 1; FindTimePoints[playerid] = points; JucatorCautat[playerid] = giveplayerid; PlayerInfo[playerid][pDetSkill] ++; format(string, sizeof(string), "Checkpoint will display player %s location. Follow the red checkpoint... ", giveplayer); SendClientMessage(playerid, COLOR_YELLOW, string); UsedFind[playerid] = 1; } } else { SendClientMessage(playerid, COLOR_WHITE, " Invalid Name/ID !"); } } return 1; } Am creat un timer de 1 secunda pentru comanda: forward findtime(); public findtime() { for(new i = 0; i < MAX_PLAYERS; i++) { if(JucatorCautat[i] >= 0) { new tinta; tinta = JucatorCautat[i]; new Float: x, Float: y, Float: z; GetPlayerPos(tinta,x,y,z); SetPlayerCheckpoint(i,x,y,z, 3.0); } } } Imagini / Video (optional): -Ati incercat sa rezolvati singur?: Da, dar nu am reusit.
-
Am rezolvat. Multumesc frumos
-
Universal. Deci, la 12:00 , de exemplu, trebuie sa primesc payday-ul, eu am incercat sa il testez si am adaugat la publicul PayDay un SCM ca sa vad daca functioneaza corect. Imi este afisat acest SCM timp de 1 minut. Adica, de la :00 pana la :01 imi este spamat acel SCM.
-
Problema intalnita (descriere):Problema Payday. Am urmat tutorialul: Insa, primesc payday la :00 timp de 1 minut. Adica, am incercat prima data printr-un text : "Ai primti payday", imi afiseaza textul asta timp de 1 minut.Ero(area / rile) / warning-(ul / urile): -Liniile de cod / sursa / script-ul(obligatoriu): -Imagini / Video (optional): -Ati incercat sa rezolvati singur?: Da, dar fara succes.
-
Descriere produs: Vreau sa gasesc un om priceput in cadrul forumului. Mai precis, sa aibe cunostinte destul de evoluate in cadrul IPB-ului. Doresc sa imi creeze o tema de la 0. Cat sunt dispus să plătesc: Daca pretul spus de el este accesibil, voi accepta. Mai intai oferta, apoi raspunsul.Alte detalii: Vreau persoane serioase, sunt o persoana serioasa, vreau intelege, fara tepe sau altele.
-
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)// News Reporters { SetPlayerFactionColor(playerid); PlayerInfo[playerid][pInterior] = 3; SetPlayerInterior(playerid, 3); SetPlayerPos(playerid, -2029.798339,-106.675910,1035.171875); SetPlayerFacingAngle(playerid, 0); return 1; }
-
Ai facut conexiunea cu baza de date?
-
Update(targetid, pMemberu); case pMemberu: { mysql_format(handle, string, sizeof(string), "UPDATE `players` SET `Member`='%d' WHERE `username`='%e'", PlayerInfo[playerid][pMember], playerName); mysql_query(handle, string); }
-
Problema intalnita (descriere): Comanda /invite nu functioneaza cum trebuie.Ero(area / rile) / warning-(ul / urile): Cand dau invite unui player, acesta intra in factiune, insa,dupa relog acesta ramane civil. Totodata, dupa comanda .invite acesta este spawnat sub pamanat nici de cum la hq.Liniile de cod / sursa / script-ul(obligatoriu): if(strcmp(cmd, "/invite", true) == 0) { if(IsPlayerConnected(playerid)) { new tmp[222]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_SYN, "Syntax: /invite [ID/nume jucator]"); return 1; } new para1; new ttext[220]; para1 = ReturnUser(tmp); if(PlayerInfo[para1][pLeader] != 0) { SendClientMessage(playerid, -1, "Acest jucator este liderul unei factiuni!"); return 1; } if(PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (PlayerInfo[para1][pMember] == 0 && WantedLevel[playerid] == 0) { /* if(PlayerInfo[para1][pFpunish] > 1) { SendClientMessage(playerid, COLOR_WHITE, "* Nu-l poti invita pe acest jucator, are FPunish!"); return 1; }*/ if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ttext = "SA Police Departament"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); } else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ttext = "Federal Bureau Of Investigation"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); } else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ttext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); } else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ttext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); } else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ttext = "Clanton 14th Street"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); } else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ttext = "18th Street Gang"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); } else if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ttext = "East Beach Bloods"; ChosenSkin[para1] = 4; SetPlayerSkin(para1, 4); } else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ttext = "Hitman Agency"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); } else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ttext = "News Reporter"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); } else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ttext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); } else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ttext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); } else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ttext = "Tow Car Company"; ChosenSkin[para1] = 34; SetPlayerSkin(para1, 34); } else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ttext = "Grove Street"; ChosenSkin[para1] = 34; SetPlayerSkin(para1, 34); } else { return 1; } new giveplayer[MAX_PLAYER_NAME]; GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); //PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader]; new factionid; Update(targetid, pMemberu); PlayerInfo[targetid][pLeader] = factionid; PlayerInfo[targetid][pMember] = factionid; PlayerInfo[para1][pRank] = 1; printf("ADMIN INFO: %s l-a invitat pe %s in factiunea %s.", sendername, giveplayer, ttext); format(string, sizeof(string), "* Ai intrat in %s, deoarece ai fost invitat de catre liderul %s.", ttext, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* L-ai invitat pe %s sa intre in factiunea ta (%s).", giveplayer,ttext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); SetPlayerInterior(para1,0); SetPlayerHealth(para1, 0); SelectCharID[para1] = PlayerInfo[para1][pMember]; PlayerInfo[para1][pModel] = ChosenSkin[para1]; PlayerInfo[para1][pChar] = ChosenSkin[para1]; } else { SendClientMessage(playerid, COLOR_WHITE, "* Acest jucator are wanted/faction punish sau este deja intr-o familie!"); return 1; } } }//not connected } else { SendClientMessage(playerid, COLOR_ERROR, "Error: Your leader level is not high enough to use this command."); } } return 1; } Imagini / Video (optional): -Ati incercat sa rezolvati singur?: Am incercat, dar fara succes. Va multumesc..
-
Problema intalnita (descriere): CreateDynamicObject: Expecting 12 parameter(s), but found 11Ero(area / rile) / warning-(ul / urile): Eroarea apare in Consola.Liniile de cod / sursa / script-ul(obligatoriu): CreateDynamicObject(970, 1539.54028, -1653.48755, 12.99920, 0.00000, 0.00000, 270.67498779297); Imagini / Video (optional): -Ati incercat sa rezolvati singur?: Da, dar fara succes.
-
public OnPlayerConnect(playerid) { PlayAudioStreamForPlayer(playerid, "linkul tau.mp3"); return 1; } public OnPlayerSpawn(playerid) { StopAudioStreamForPlayer(playerid); return 1; }
-
Salutare ! Am o problema legata de mysql. De curand am achizionat un host pentru serverul de samp pentru teste. Toate bune, am urcat baza de date in php-ul dat de cei de la host. Insa, cand urc gamemode-ul in ftp , completez plugins cu mysql, sscanf,streamer,crashdetect insa daca au restart server se opreste. Nu mai functioneaza. Am eliminat mysql de la plugins , iar serverul functioneaza, insa da unknown. Asta nu e o problema, de ce cand adaug mysql.so la plugins, server nu mai porneste? Unde am gresit si cum pot remedia problema?
-
Problema intalnita (descriere): Undefined pInfoEro(area / rile) / warning-(ul / urile): Dau compile si apare : warning 201: redefinition of constant/macro (symbol "pInfo")Liniile de cod / sursa / script-ul(obligatoriu): enum pInfo { pCarLic, };Restul variabilelor, pLevel, pAdmin, pHelper etc sunt redate aici : public WhenPlayerLogin(playerid) { .....if(rows != 0) { cache_get_field_content(0, "password", temp), format(PlayerInfo[playerid][pPassword], 128, temp); cache_get_field_content(0, "Level", temp), PlayerInfo[playerid][pLevel] = strval(temp); cache_get_field_content(0, "AdminLevel", temp), PlayerInfo[playerid][pAdmin] = strval(temp); cache_get_field_content(0, "HelperLevel", temp), PlayerInfo[playerid][pHelper] = strval(temp); cache_get_field_content(0, "Cash", temp), PlayerInfo[playerid][pCash] = strval(temp); cache_get_field_content(0, "Account", temp), PlayerInfo[playerid][pAccount] = strval(temp); cache_get_field_content(0, "Email", temp), format(PlayerInfo[playerid][pEmail], 256, temp); cache_get_field_content(0, "Registred", temp), PlayerInfo[playerid][pRegistred] = strval(temp); cache_get_field_content(0, "Tutorial", temp), PlayerInfo[playerid][pTutorial] = strval(temp); cache_get_field_content(0, "Sex", temp), PlayerInfo[playerid][pSex] = strval(temp); cache_get_field_content(0, "Age", temp), PlayerInfo[playerid][pAge] = strval(temp); cache_get_field_content(0, "PhoneNumber", temp), PlayerInfo[playerid][pPhoneNumber] = strval(temp); cache_get_field_content(0, "PremiumAccount", temp), PlayerInfo[playerid][pPremiumAccount] = strval(temp); cache_get_field_content(0, "Banned", temp), PlayerInfo[playerid][pBanned] = strval(temp); cache_get_field_content(0, "Warns", temp), PlayerInfo[playerid][pWarns] = strval(temp); cache_get_field_content(0, "Leader", temp), PlayerInfo[playerid][pLeader] = strval(temp); cache_get_field_content(0, "Member", temp), PlayerInfo[playerid][pMember] = strval(temp); cache_get_field_content(0, "Rank", temp), PlayerInfo[playerid][pRank] = strval(temp); cache_get_field_content(0, "Skin", temp), PlayerInfo[playerid][pSkin] = strval(temp); cache_get_field_content(0, "IP", temp), PlayerInfo[playerid][pIP] = strval(temp); //cache_get_field_content(0, "LicenceCar", temp), PlayerInfo[playerid][pCarLic] == 0); }Imagini / Video (optional):-Ati incercat sa rezolvati singur?: Da. Dar fara succes.
-
Done. Am rezolvat. Trebuie update la nativechecker.
-
UP ? Cineva?
-
Nu imi da eroare la compilare. Am bagat include-urile si am facut si conexiunea cu baza de date.
-
Problema intalnita (descriere): "File or Function error". Este un gamemode postat de W3op pe .com : http://forum.sa-mp.com/showthread.php?t=463354Ero(area / rile) / warning-(ul / urile): Cand vreau sa pornesc gamemodeul imi apare eroarea in consola cu "File Or Function".Liniile de cod / sursa / script-ul(obligatoriu): -Imagini / Video (optional): SERVER.CFG : echo Executing Server Config... lanmode 1 rcon_password wopss maxplayers 50 port 7777 hostname Gamemode in lucru. gamemode0 w3op 1 plugins mysql announce 0 query 1 chatlogging 0 weburl www.sa-mp.com onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 0 logtimeformat [%H:%M:%S] Ati incercat sa rezolvati singur?: Da, dar fara succes. Am updatat mysql dar fara succes. Daca considerati ca este de la mysql, dati-mi va rog un link de download care functioneaza 100%.
