DarkyTheAngel
Membru-
Posts
1.005 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by DarkyTheAngel
-
#include <a_samp> #include <JunkBuster> #define ARMEDBODY_USE_HEAVY_WEAPON (false) static armedbody_pTick[MAX_PLAYERS]; public OnPlayerUpdate(playerid){ if(GetTickCount() - armedbody_pTick[playerid] > 113){ new weaponid[13],weaponammo[13],pArmedWeapon; pArmedWeapon = GetPlayerWeapon(playerid); GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]); GetPlayerWeaponData(playerid,2,weaponid[2],weaponammo[2]); GetPlayerWeaponData(playerid,4,weaponid[4],weaponammo[4]); GetPlayerWeaponData(playerid,5,weaponid[5],weaponammo[5]); #if ARMEDBODY_USE_HEAVY_WEAPON GetPlayerWeaponData(playerid,7,weaponid[7],weaponammo[7]); #endif if(weaponid[1] > 0){ if(pArmedWeapon != weaponid[1]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,0)){ SetPVarInt(playerid, "arma1", SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),1, 0.199999, -0.139999, 0.030000, 0.500007, -115.000000, 0.000000, 1.000000, 1.000000, 1.000000)); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma1"),0); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(playerid,0); } if(weaponid[2] > 0){ if(pArmedWeapon != weaponid[2]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,1)){ SetPVarInt(playerid, "arma2", SetPlayerAttachedObject(playerid,1,GetWeaponModel(weaponid[2]),8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000)); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,1)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma2"),1); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,1)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma2"),1); } if(weaponid[4] > 0){ if(pArmedWeapon != weaponid[4]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,2)){ SetPVarInt(playerid, "arma3", SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),7, 0.000000, -0.100000, -0.080000, -95.000000, -10.000000, 0.000000, 1.000000, 1.000000, 1.000000)); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,2)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma3"),2); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,2)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma3"),2); } if(weaponid[5] > 0){ if(pArmedWeapon != weaponid[5]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,3)){ SetPVarInt(playerid, "arma4", SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[5]),1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000)); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,3)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma4"),3); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,3)){ RemovePlayerAttachedObject(GetPVarInt(playerid, "arma4"),3); } #if ARMEDBODY_USE_HEAVY_WEAPON if(weaponid[7] > 0){ if(pArmedWeapon != weaponid[7]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,4)){ SetPlayerAttachedObject(playerid,4,GetWeaponModel(weaponid[7]),1,-0.100000, 0.000000, -0.100000, 84.399932, 112.000000, 10.000000, 1.099999, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,4)){ RemovePlayerAttachedObject(playerid,4); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,4)){ RemovePlayerAttachedObject(playerid,4); } #endif armedbody_pTick[playerid] = GetTickCount(); } return true; } stock GetWeaponModel(weaponid) { switch(weaponid) { case 1: return 331; case 2..8: return weaponid+331; case 9: return 341; case 10..15: return weaponid+311; case 16..18: return weaponid+326; case 22..29: return weaponid+324; case 30,31: return weaponid+325; case 32: return 372; case 33..45: return weaponid+324; case 46: return 371; } return 0; }
-
Cand o sa ne postezi sursa filterscript-ului atunci o sa te ajutam si noi. Pana atunci ghicim in carti.
-
Fa-ti update la pawno.
-
Adauga asta in pawno/includes. Verifica daca ai la inceputul scriptului urmatoarea linie: #include <a_samp>
-
[img width=500 height=375] [img width=500 height=375] [img width=500 height=375] [img width=500 height=375] Cum ma fac administrator ?: [list type=decimal] [*]Inregistreaza-te pe server. [*]Deschide baza de date cu SQLite Database Browser. [*]La coloana Administrator va aparea urmatorul numar 0, ca sa fiti administrator, schimbati acel numar in 1. Creditele server-ului: DarkyTheAngel Vampir_MD ShOoBy adr1 Kwarde [Ro]DuReX [Cro]Nano Igorek OKStyle Hardwell [sGM]eXtreMe Y_Less Incognito Fro1sha [download]http://www.solidfiles.com/d/f43ff5cef6[/download] P.S: Modul de joc mai are "bug-uri", daca sunteti scripteri, rezolvati-le singuri.
-
Grand Theft Auto SA nu gaseste cardul audio (driver-ul audio) instalat. Instaleaza-ti driver-ul si nu o sa iti mai apara aceasta eroare.
-
Nu este rau, dar se putea si mai bine. P.S: Pune poze sa vada romanii ce descarca, si o descriere mai bine facuta.
-
Reinstaleaza SA:MP (modul multiplayer), nu GTA.
-
Pentru SQLite: Click aici ! (.db) Pentru MySQL: Click aici ! (.sql)
-
Cand ti se inchide GTA-ul iti da cumva vreo eroare ? Incearca sa reinstalezi modul multiplayer.
-
Crashdetect nu te ajuta la absolut nimic. Verifica daca ai fisierele necesare in scriptifles. Cauta in gamemode/filterscripts, urmatoarea linie: SendRconCommand("gmx");
-
Galaxy Omega Stunt v0.6 [ZCMD + SSCANF + Dini] -> UPDATE <-
DarkyTheAngel replied to Diabolik's topic in Gamemode-uri
Bravo pentru versiunea 0.6. 5/5 P.S: Mi-ai furat sloganul (* Just another gamemode !). ) -
Multumesc. Multumesc. )
-
Click aici !
-
error 032: array index out of bounds (variable "JoinPed")
DarkyTheAngel replied to Diabolik's question in Arhivă probleme
Schimba new Peds[89][1] = { in new Peds[70][1] = { -
error 032: array index out of bounds (variable "JoinPed")
DarkyTheAngel replied to Diabolik's question in Arhivă probleme
Cauta la inceputu scriptului urmatoarea linie: new JoinPed[X][1] Apoi schimba X cu numarul de "joinped-uri". Ai incercat sa folosesti mai multe "joinped-uri" decat cele definite la enumerari. -
"Plictiseala bate lenea." EDIT: Am scos [MINIGAME] de la nume, nu prea pare a "minigame". )
-
Informatii: Este un simplu script de 362 linii prin care poti pacali jucatorii.Daca jucatorul scrie /minigun, /teleport, /hack, /m4, /colt45, /bazooka, /hackmasterdick, /jbieber, /LXGIWYL, /PROFESSIONALSKIT, /UZUMYMW, /HESOYAM, /BAGUVIX, /CVWKXAM, /ANOSEONGLASS, /FULLCLIP, /aezakmi, nu se va mai putea misca, iar pe ecran o sa ii apara o intrebare (Are you gay ?) iar el trebuie sa raspunda cu da sau nu.Ce nu stie, este ca daca apasa pe butonul "nu", acesta dispare si apare in alta parte, si tot asa, el fiind nevoit sa apese pe "da".Odaca ce apasa pe "da", un mesaj va fi trimis tuturor jucatorilor de pe server, cum ca jucatorul respectiv este gay ( ) ).Am facut acest script la plictiseala, deci nu aruncati cu pietre,cutite,rosii sau alte obiecte/legume/fructe. Poze: Inainte sa apese pe "nu": Dupa ce a apasat pe "nu": [img width=500 height=375] Download: Click [download]aici ![/download]
-
Posteaza aici tot ce tine de fuel system (timere, functii etc.).
-
Incearca asa: public Fillup() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new VID; new FillUp; new string[256]; VID = GetPlayerVehicleID(i); FillUp = GasMax - Gas[VID]; if(Refueling[i] == 1) { if(IsACopCar(VID) || IsAnFbiCar(VID) || IsAnAmbulance(VID) || IsNgCar(VID) || IsAGovernmentCar(VID) || IsAHspdCar(VID)) { Gas[VID] += FillUp; FillUp = FillUp * 10; format(string,sizeof(string),"* Vehicle filled up, for: $%s.",number_format(FillUp)); SendClientMessage(i,COLOR_LIGHTBLUE,string); GameTextForPlayer(i, "~w~Government has paid for a gas.", 5000, 1); SBizzInfo[3][sbTill] += FillUp; ExtortionSBiz(3, FillUp); Refueling[i] = 0; TogglePlayerControllable(i, 1); } else { if(GetPlayerCash(i) >= FillUp+4) { Gas[VID] += FillUp; FillUp = FillUp * 10; format(string,sizeof(string),"* Vehicle filled up, for: $%s.",number_format(FillUp)); SendClientMessage(i,COLOR_LIGHTBLUE,string); GivePlayerCash(i, - FillUp); SBizzInfo[3][sbTill] += FillUp; ExtortionSBiz(3, FillUp); Refueling[i] = 1; TogglePlayerControllable(i, 1); } else { format(string,sizeof(string),"* Not enough Money to refill, it costs $%s to fill your Vehicle.",number_format(FillUp)); SendClientMessage(i,COLOR_LIGHTBLUE,string); TogglePlayerControllable(i, 1); } } } } } return 1; }
-
public Fillup() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new VID; new FillUp; new string[256]; VID = GetPlayerVehicleID(i); FillUp = GasMax - Gas[VID]; if(Refueling[i] == 1) { if(IsACopCar(VID) || IsAnFbiCar(VID) || IsAnAmbulance(VID) || IsNgCar(VID) || IsAGovernmentCar(VID) || IsAHspdCar(VID)) { Gas[VID] += FillUp; FillUp = FillUp * 10; format(string,sizeof(string),"* Vehicle filled up, for: $%s.",number_format(FillUp)); SendClientMessage(i,COLOR_LIGHTBLUE,string); GameTextForPlayer(i, "~w~Government has paid for a gas.", 5000, 1); SBizzInfo[3][sbTill] += FillUp; ExtortionSBiz(3, FillUp); Refueling[i] = 1; TogglePlayerControllable(i, 1); } else { if(GetPlayerCash(i) >= FillUp+4) { Gas[VID] += FillUp; FillUp = FillUp * 10; format(string,sizeof(string),"* Vehicle filled up, for: $%s.",number_format(FillUp)); SendClientMessage(i,COLOR_LIGHTBLUE,string); GivePlayerCash(i, - FillUp); SBizzInfo[3][sbTill] += FillUp; ExtortionSBiz(3, FillUp); Refueling[i] = 1; TogglePlayerControllable(i, 1); } else { format(string,sizeof(string),"* Not enough Money to refill, it costs $%s to fill your Vehicle.",number_format(FillUp)); SendClientMessage(i,COLOR_LIGHTBLUE,string); TogglePlayerControllable(i, 1); } } } } } return 1; }
-
Pai uite care este problema.Tu ai folosit clauzele in limba "romana", ele trebuie folosite in limba "engleza".Ex: db_free_result( db_query( Database, "CREEAZA O MASA DACA NU EXISTA `Vips` \ Ar trebui sa devina: db_free_result( db_query( Database, "CREATE TABLE IF NOT EXISTS `Vips` \ http://forum.sa-mp.com/showthread.php?t=253977
-
Filterscript-ul, este modificat ?
-
[TUTORIAL] Cele mai intalnite erori/avertizmente in pawno!
DarkyTheAngel replied to DarkyTheAngel's topic in Tutoriale
Multumesc.Mai astept pareri in legatura cu tutorial-ul. -
[TUTORIAL] Cele mai intalnite erori/avertizmente in pawno!
DarkyTheAngel posted a topic in Tutoriale
[glow=black,2,300]ERORI:[/glow] 1.Expression has no effect: Aceasta eroare este cauzata de simboluri (litere/cifre) puse aiurea in script.Ex.: public OnPlayerConnect ( playerid ) { #defined SCM SendClientMessage SCM ( playerid , 0xFFFFFFFF , "Darky" ) ; dsa return ( 1 ) ; } Ca sa rezolvati aceasta eroare trebuie sa stergeti acele simboluri: public OnPlayerConnect ( playerid ) { #defined SCM SendClientMessage SCM ( playerid , 0xFFFFFFFF , "Darky" ) ; return ( 1 ) ; } 2.Symbol already defined 'X': Aceasta eroare este cauzata de un simbol care este definit de mai multe ori.Ex.: public OnPlayerConnect ( playerid ) { #defined SCM SendClientMessage new name [ MAX_PLAYER_NAME ] , string [ 128 ] , string [ 128 ] ; GetPlayerName ( playerid , name , sizeof ( name ) ) ; format ( string , sizeof ( string ) , "%s a intrat pe server." , name ) ; SCMToAll ( 0xFFFFFFFF , string ) ; return ( 1 ) ; } Ca sa rezolvati aceasta eroare trebuie sa stergeti unul dintre simbolurile definite de 2 ori sau sa il redenumiti pe unul dintre ele: public OnPlayerConnect ( playerid ) { #defined SCM SendClientMessage new name [ MAX_PLAYER_NAME ] , string [ 128 ] ; GetPlayerName ( playerid , name , sizeof ( name ) ) ; format ( string , sizeof ( string ) , "%s a intrat pe server." , name ) ; SCMToAll ( 0xFFFFFFFF , string ) ; return ( 1 ) ; } 3.Cannot read from file 'X': Aceasta eroare este cauzata de un include pus la inceputul scriptului (#include < dark >), dar el nu exista in pawno/includes. Ca sa rezolvati aceasta eroare trebuie sa adaugati acel include in pawno/includes. 4.Empty statement: Aceasta eroare este cauzata de un simbol care se repeta pe un rand.Ex.: public OnPlayerEnterVehicle ( playerid , vehicleid , ispassenger ) { #defined SCM SendClientMessage if ( vehicleid == 611 ) { SCM ( playerid , 0xFFFFFFFF , "Darky"" ) ; // " se repeta. return ( 1 ) ; } return ( 1 ) ; } Ca sa scapati de aceasta eroare trebuie sa stergeti acel simbol: public OnPlayerEnterVehicle ( playerid , vehicleid , ispassenger ) { #defined SCM SendClientMessage if ( vehicleid == 611 ) { SCM ( playerid , 0xFFFFFFFF , "Darky" ) ; // " nu se repeta. return ( 1 ) ; } return ( 1 ) ; } 5.Undefined symbol 'X': Aceasta eroare este cauzata de faptul ca folosesti un simbol care nu este creat.Ex.: public OnPlayerConnect ( playerid ) { #defined SCM SendClientMessage new string [ 128 ] ; GetPlayerName ( playerid , name , sizeof ( name ) ) ; format ( string , sizeof ( string ) , "%s a intrat pe server." , name ) ; // Name nu este creat. SCMToAll ( 0xFFFFFFFF , string ) ; return ( 1 ) ; } Ca sa scapati de aceasta eroare trebuie sa creeati acel simbol: public OnPlayerConnect ( playerid ) { #defined SCM SendClientMessage new name [ MAX_PLAYER_NAME ] , string [ 128 ] ; GetPlayerName ( playerid , name , sizeof ( name ) ) ; format ( string , sizeof ( string ) , "%s a intrat pe server." , name ) ; // Name este creat. SCMToAll ( 0xFFFFFFFF , string ) ; return ( 1 ) ; } 6.Undefined symbol 'params': Aceasta eroare se formeaza cand parametrii nu sunt suportati.Ex.: if ( listitem == 0 ) return dcmd_text ( playerid , params ) ; Ca sa scapati de aceasta eroare, folositi una din solutile de mai jos: Opritiva din utilizarea parametrilor.Ex.: if ( listitem == 0 ) return dcmd_text ( playerid ) ; Adaugati urmatoarea linie in functie: #pragma unused params In cazul in care parametrii sunt folositi la un dialog, schimbati "params" in "inputtext": if ( listitem == 0 ) return dcmd_text ( playerid , inputtext ) ; 7.Undefined symbol 'strtok': Aceasta eroare apare cand "strtok" nu este definit.Ca sa rezolvati aceasta eroare adaugati urmatorul cod la sfarsitul scriptului: strtok ( const string [ ] , &index ) { new length = strlen ( string ) ; while ( ( index < length ) && ( string [ index ] <= ' ' ) ) { index++ ; } new offset = index ; new result [ 20 ] ; while ( ( index < length ) && ( string [ index ] > ' ' ) && ( ( index - offset ) < ( sizeof ( result ) - 1 ) ) ) { result [ index - offset ] = string [ index ] ; index++ ; } result [ index - offset ] = EOS ; return result ; } 8.Function "PlayerToPoint" is not implemented: Aceasta eroare iti spune ca functia "PlayerToPoint" nu este implementata.Ca sa rezolvi aceasta eroare, trebuie sa implementezi functia: forward PlayerToPoint ( Float:radi , playerid , Float:x , Float:y , Float:z ) public PlayerToPoint ( Float:radi , playerid , Float:x , Float:y , Float:z ) { new Float:oldposx , Float:oldposy , Float:oldposz , Float:tempposx , Float:tempposy , Float:tempposz ; GetPlayerPos ( playerid , oldposx , oldposy , oldposz ) ; tempposx = ( oldposx -x ) ; tempposy = ( oldposy -y ) ; tempposz = ( oldposz -z ) ; if ( ( ( tempposx < radi ) && ( tempposx > -radi ) ) && ( ( tempposy < radi ) && ( tempposy > -radi ) ) && ( ( tempposz < radi ) && ( tempposz > -radi ) ) ) { return ( 1 ) ; } return ( 0 ) ; } 9.Function "IsPlayerInArea" is not implemented: Aceasta eroare iti spune ca functia "IsPlayerInArea" nu este implementata.Ca sa rezolvi aceasta eroare, trebuie sa implementezi functia: forward IsPlayerInArea ( playerid , Float:max_x , Float:min_x , Float:max_y , Float:min_y ) public IsPlayerInArea ( playerid , Float:max_x , Float:min_x , Float:max_y , Float:min_y ) { new Float:pX , Float:pY , Float:pZ ; GetPlayerPos ( playerid , pX , pY , pZ ) ; if ( pX <= max_x && pX >= min_x && pY <= max_y && pY >= min_y ) return ( 1 ) ; return ( 0 ) ; } 10.Function "ProxDetector" is not implemented: Aceasta eroare iti spune ca functia "ProxDetector" nu este implementata.Ca sa rezolvi aceasta eroare, trebuie sa implementezi functia: forward ProxDetector ( playerid , Float:position , string [ ] , color ) public ProxDetector ( playerid , Float:position , string [ ] , color ) { new Float:X , Float:Y , Float:Z ; GetPlayerPos ( playerid , X , Y , Z ) ; foreach ( Player, i ) { if ( IsPlayerInRangeOfPoint ( i , position , X , Y , Z ) ) { SCM ( i , color , string ) ; } } } 11.Function "CrimInRange" is not implemented: Aceasta eroare iti spune ca functia "CrimInRange" nu este implementata.Ca sa rezolvi aceasta eroare, trebuie sa implementezi functia: forward CrimInRange ( Float:radi , playerid , copid ) ; public CrimInRange ( Float:radi , playerid , copid ) { if ( IsPlayerConnected ( playerid ) && IsPlayerConnected ( copid ) ) { new Float:posx , Float:posy , Float:posz , Float:oldposx , Float:oldposy , Float:oldposz , Float:tempposx , Float:tempposy ; GetPlayerPos ( playerid , oldposx , oldposy , oldposz ) ; GetPlayerPos ( copid , posx , posy , posz ) ; tempposx = ( oldposx -posx ) ; tempposy = ( oldposy -posy ) ; if ( ( ( tempposx < radi ) && ( tempposx > -radi ) ) && ( ( tempposy < radi ) && ( tempposy > -radi ) ) ) { return ( 1 ) ; } } return ( 0 ) ; } 12.Unknown parameter in substitution: Aceasta eroare apare cand ati folosit un parametru care nu este definit.Ex.: #define SPP(%1,%2,%3,%4); SetPlayerPos(%5,%2,%3,%4); // %5 nu este definit. // by iggy1. Ca sa rezolvati aceasta eroare, trebuie sa folositi parametrii exacti. #define SPP(%1,%2,%3,%4); SetPlayerPos(%1,%2,%3,%4); // by iggy1. 13.Argument type mismatch (argument 2): Aceasta eroare apare cand continutul nu este pus corespunzator.Ex.: SCM ( playerid , "Darky" , 0xFFFFFFFF ) ; Ca sa rezolvati aceasta eroare, trebuie sa aranjati continutul liniei: SCM ( playerid , 0xFFFFFFFF , "Darky" ) ; 14.Only a single statement (or expression) can follow each “case”: Aceasta eroare se formeaza cand un "string", nu este pozitionat corect.Ex.: main ( ) { switch ( x ) { case 0: print ( "Darky" ) ; print ( "Darky" ) ; } return ( 1 ) ; } Ca sa rezolvati aceasta eroare, trebuie sa aranjati codul: main ( ) { switch ( x ) { case 0: { print ( "Darky" ) ; print ( "Darky" ) ; } } return ( 1 ) ; } 15.Array sizes do not match, or destination array is too small: Aceasta eroare apare cand aria este prea mica.Ex.: new test [ 8 ] ; // 8 este aria. new msg [ ] = "Darky" ; test = msg ; Ca sa rezolvati aceasta eroare, trebuie sa mariti aria: new test [ 15 ] ; // 15 este aria. new msg [ ] = "Darky" ; test = msg ; [glow=black,2,300]AVERTIZMENTE:[/glow] 1.Tag mismatch: Acest avertizment apare cand ati asigurat o eticheta gresita ariei.Ex.: new Logo0 ; Ca sa il rezolvati, trebuie sa rescrieti aria corect: new Text:Logo0 ; 2.Loose indentation: Acest avertizment apare cand o linie nu este pozitionata bine.Ex: public OnGameModeInit ( ) { print ( "Darky" ) ; return ( 1 ) ; } Ca sa il rezolvati, trebuie sa pozitionati linia corect: public OnGameModeInit ( ) { print ( "Darky" ) ; return ( 1 ) ; } 3.Nested comment: Acest avertizment apare cand ati deschis un comentariu, in alt comentariu.Ex.: public OnGameModeInit ( ) { /* /* print ( "Darky" ) ; */ return ( 1 ) ; } Ca sa il rezolvati, stergeti al doilea comentariu: public OnGameModeInit ( ) { /* print ( "Darky" ) ; */ return ( 1 ) ; } 4.Symbol is never used X': Acest avertizment se formeaza cand ati creat o arie noua, dar nu ati folosit-o.Ex.: new string [ 128 ] ; Ca sa il rezolvati, stergeti acea arie sau folositi-o. 5.Unreachable code: Acest avertizment se formeaza cand codul nu este accesibil, mai exact, cand codul este reintors de mai multe ori.Ex: public OnPlayerText ( playerid , text [ ] ) { #define SCM SendClientMessage new bool:AFK [ MAX_PLAYERS ] ; if ( AFK [ playerid ] == 1 ) { SCM ( playerid , -1 , "Darky" ) ; return ( 0 ) ; } return ( 1 ) ; else return ( 0 ) ; } Ca sa rezolvati acest avertizment, asigurati-va ca, codul este accesibil: public OnPlayerText ( playerid , text [ ] ) { #define SCM SendClientMessage new bool:AFK [ MAX_PLAYERS ] ; if ( AFK [ playerid ] == 1 ) { SCM ( playerid , -1 , "Darky" ) ; return ( 0 ) ; } return ( 1 ) ; } 6.Number of arguments does not match definition: Acest avertizment apare cand ai mai multe sau mai putine argumente decat ar trebui sa ai.Ex.: CMD:test( playerid , params [ ] ) { SetPlayerPos ( playerid , X , Y , Z , 0 ) ; // Am pus 0 la final, 0 fiind "interior". return ( 1 ) ; } Ca sa il rezolvati, trebuie sa folositi sintaxa corecta."SetPlayerPos" are 4 argumente acestea fiind "playerid,X,Y,Z" asa ca "interior (0)" nu este pus corect acolo: CMD:test( playerid , params [ ] ) { SetPlayerPos ( playerid , X , Y , Z ) ; SetPlayerInterior ( playerid , 0 ) ; return ( 1 ) ; } 7.Old style prototypes used with optional semicolon: Acest avertizment apare cand lipsesc semi-coloane. Ca sa il rezolvati, adaugati la inceputul scriptului urmatoarea linie: #pragma semicolon 0 P.S: Rock, imi cer scuze, din nou , pentru ca ti-am folosit stilul de postare.
