Jump to content

ImTouchk

Membru
  • Posts

    165
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by ImTouchk

  1. Problema intalnita (descriere):Primest warning-urile TAG MISMATCH si NUMBER OF ARGUMENTS DOES NOT MATCH THE DEFINITIONS.
    Ero(area / rile) / warning-(ul / urile):

    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1395) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1406) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(2215) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(2215) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(2215) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(2296) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(3939) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(3940) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(3941) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(3942) : warning 213: tag mismatch
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    13 Warnings.


    Liniile de cod / sursa / script-ul(obligatoriu):

    1394     GetPlayerPos( playerid, PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ] );
    1395     GetPlayerFacingAngle( playerid, PlayerInfo[playerid][Angle] );

    1406     INI_WriteInt(File,"Rank",PlayerInfo[playerid][fRank]);

    Codul de mai jos care nu merge cum trebuie cand il folosesti:

    CMD:mdc(playerid, params[])
    {
    	new targetid;
    	new targetn[MAX_PLAYER_NAME];
    	new playern[MAX_PLAYER_NAME];
    	new str[800];
    	GetPlayerName(targetid, targetn, MAX_PLAYER_NAME);
    	GetPlayerName(playerid, playern, MAX_PLAYER_NAME);
    	if(PlayerInfo[playerid][pFaction] != 1) return SendClientMessage(playerid, -1, "Nu esti politist.");
    	if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, COLOR_PURPLE, "!{FFFFFF}: /mdc [playerid]");
    	if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_PURPLE, "!{FFFFFF}: Nu se poate identifica numele dat! (( ID Invalid ))");
    	format(str, sizeof(str), "> Mobile Computer Data...");
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "> (( Date id %d ))", targetid);
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "> CNP: %d", PlayerInfo[targetid][pCNP]);
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "> Bani in cont bancar: %d", PlayerInfo[targetid][pBank]);
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "> Arestat: %d", PlayerInfo[targetid][pJailed]);
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "> In urmarire: %d", PlayerInfo[targetid][pSearched]);
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "> Casa detinuta: %d", PlayerInfo[targetid][pHouse]);
    	SendClientMessage(playerid, -1, str);
    2215	format(str, sizeof(str), "> Coordonatele actuale: %d", GetPlayerPos(targetid));
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "> Telefon detinut: %d", PhoneInfo[targetid][pOwned]);
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "> Numar de telefon: %d", PhoneInfo[targetid][pNumber]);
    	SendClientMessage(playerid, -1, str);
    	format(str, sizeof(str), "%s deschide computerul portabil.", playern);
    	ProxDetector(50.00, playerid,str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    	return 1;
    }

    3939 - 3942  INI_Float( "PositionX", PlayerInfo[playerid][PosX]);
        INI_Float( "PositionY", PlayerInfo[playerid][PosY]);
        INI_Float( "PositionZ", PlayerInfo[playerid][PosZ]);
        INI_Float( "Angle", PlayerInfo[playerid][Angle]);
    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?: Da. Nu gasesc nimic care sa fie pentru warning, mai ales in format. Il folosesc mai peste tot si numai aici primesc warning-uri. Daca mai sunt linii ce nu le-am dat, inseamna ca nu mai am nevoie de ajutor la ele.

  2. Pot crea forumuri cu platforme ipb

    IPB Nulled poate sa puna oricine pe un forum hostinger.

    pot rezolva, repara si chiar crea sisteme/comenzi.

    Atat?... Un developer are nevoie de persoane in 3RD PARTY TEAM persoane ce fac si sisteme, pot si eu sa fac o comanda gen /help...

    Nu prea recomand daca vreti sa va faceti o comunitate si nu aveti un gamemode stabil.

  3. 1 hour ago, DaEdRiC-FoX said:

    Nu prea o sa ai succes cu un server role play, majoritatea joaca rpg si cam atât.. Dar oricum, succes.

    Multumesc. Se joaca si lume pe roleplay, daca nu o sa am succes aici o sa mut proiectul pe plan international

  4. On 10/23/2016 at 1:14 AM, TrueCross said:

    Salut, am si eu o problema minora, nu mi se executa codul cand apas doar tasta `F` sau ENTER, trebuie sa apas F / ENTER + alt sau space, aveti idee de ce? eu as vrea sa fie doar din F sau ENTER.

     

    if (newkeys & KEY_SECONDARY_ATTACK && flymode[playerid] == 1)
       {
            new sendername[30], string[256];
            GetPlayerName(playerid, sendername, sizeof(sendername));
              flymode[playerid] = 0;
            format(string,sizeof(string),"{F89AD6}Fly mode OFF.", sendername);
            SCM(playerid, COLOR_RED, string);
            StopFly(playerid);
            SetPlayerHealthEx(playerid, 100); 
            return 1;
       }

     

    // face la fel si fara chestia cu flymode

    Dacă nu ai nicio problemă decât aceasta, schimbă acel KEY într-altul. De ce? Deoarece în config-ul tău la controale de la samp, tu ai definit probabil şi enter, şi F ca secondary attack ceea ce rezultă că trebuie amândouă apăsate să meargă. Ai două variante:
    Schimbi key-ul de la această comandă(găsite aici) script-wise, adică din gamemode, sau pur şi simplu să ştergi din controalele samp-ului tău enter.

  5. public OnPlayerClickTextDraw(playerid, Text:clickedid)
    {
        if(clickedid == horse2[playerid])
        {
             SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
             CancelSelectTextDraw(playerid);
        }
        return 1;
    }

    Această linie nu este făcută cum trebuie, rezultă că nu o să funcţioneze ce ai vrut să faci. -- 

    Cum apare şi în definiţia de pe Wikipedia(Sripting Functions), toate textdraw-urile, indiferent unde sunt puse, trebuie să aiba acel Text: înainte. Să vedem.

    if(clickedid == horse2[playerid])

    Aici este eroarea cel mai probabil.

    O să-ţi explic de ce: înainte de orice funcţie, cum am mai zis, trebuie să adaugi acel Text: înainte, altfel acesta nu v-a funcţiona, vei primii warning sau chiar eroare. 

    A doua greşeală este că ai pus [playerid] după numele textdraw-ului, ceea ce este foarte greşit. Textdraw-ul trebuie să RĂMÂNĂ mereu la numele său iniţial(cel găsit în new-ul creeat, dacă nu îţi dă eroare presupun că l-ai pus). 

    Acum să vedem cum ar trebuii să arate cod-ul acum:

    public OnPlayerClickTextDraw(playerid, Text:clickedid)
    {
        if(clickedid == Text:horse2)
        {
             SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
             CancelSelectTextDraw(playerid);
        }
        return 1;
    }

    Acel playerid, chiar dacă l-ai definit aşa este total greşit, îl laşi şi în new, şi în cod, FĂRĂ acel playerid.

  6. Problema intalnita (descriere): api-ms-win-crt-runtime-l1-1-0.dll error cand porneste serverul
    Ero(area / rile) / warning-(ul / urile):
    Liniile de cod / sursa / script-ul(obligatoriu):

     

    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(261) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "engine"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "objective"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "boot"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "bonnet"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "doors"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(386) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(462) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(507) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1018) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1047) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1050) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1076) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1166) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1172) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1176) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1182) : warning 213: tag mismatch
    Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    21 Warnings.
     

    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(261) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "engine"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "objective"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "boot"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "bonnet"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "doors"
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(386) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(462) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(507) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1018) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1047) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1050) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1076) : warning 202: number of arguments does not match definition
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1166) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1172) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1176) : warning 213: tag mismatch
    C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1182) : warning 213: tag mismatch
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    21 Warnings.


    Imagini / Video (optional): n/a
    Ati incercat sa rezolvati singur?: da... si pe site-ul .com

    *sry double-post

    Nu are niciun cod de linie, din cate stiu eu

  7. On 14.09.2016 at 9:51 AM, Mafia. said:
    
    CMD:setadmin(playerid, params[])
    {
    	new string1[250]
    	if(PlayerInfo[playerid][pAdmin] = 6)return SendClientMessage(playerid, 0xFF9900AA, "Nu esti administring1ator, nu poti folosi comanda. Simplu.");
    	if(sscanf(params,"ui",ID,levels)) return SendClientMessage(playerid,0xFF9900AA, "FOLOSESTE: /setadmin [Nume sau ID] [Nivel(1-6)]");//it will show this if you dont use the format properly
    	if(levels > 4) return SendClientMessage(playerid,0xFF0000FF,"POTI DA UN NIVEL DE LA 1 LA 6!");//Available levels
    	if(!IsPlayerConnected(ID))return SendClientMessage(playerid,0xFF00000,"Utilizatorul selectat nu este inregistring1at.");//Detect if the id/partofname is connected
    	if(PlayerInfo[ID][pAdmin] == levels) return SendClientMessage(playerid,0xFF0000FF, "EROARE: Persoana selectata are deja acest nivel!");//Detect if the guy is already the level you setted
      	GetPlayerName(playerid,Nam, MAX_PLAYER_NAME);//define the playerid name
       	GetPlayerName(ID,pname,MAX_PLAYER_NAME);//define the other person name
       	if(levels == 0)
       	{
        	format(string1, sizeof(string1),"{FFFFFF}%s {FF0000}ti-a setat nivelul de administring1ator la {FFFFFF}%d{FF0000}.",Nam,levels);
    		SendClientMessage(ID,0xFF9900AA,string1);
     		format(string1, sizeof(string1),"{FF0000}I-ai setat lui {FFFFFF}%s {FF0000}nivelul de administring1ator la {FFFFFF}%d!",pname,levels);
    		SendClientMessage(playerid,0xFF9900AA,string1);
       		PlayerInfo[ID][pAdmin] = levels;//this sets the player level
       		return 1;
    	}
    	format(string1, sizeof(string1),"{FFFFFF}%s {FF0000}ti-a setat nivelul de administring1ator {FFFFFF}%d{FF0000}!",Nam,levels);
    	SendClientMessage(ID,0xFF9900AA,string1);
    	format(string1, sizeof(string1),"{FF0000}I-ai setat lui {FFFFFF}%s {FF0000}nivelul de administring1ator la {FFFFFF}%d{FF0000}!",pname,levels);
    	SendClientMessage(playerid,0xFF9900AA,string1);
    	PlayerInfo[ID][pAdmin] = levels;
    	return 1;
    }

    Incearca asa !

    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Core\y_debug.inc(289) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Core\y_debug.inc(298) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(419) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1010) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1032) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1049) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(412) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(590) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(617) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(682) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(1079) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(1099) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_malloc/funcs.inc(435) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_malloc/funcs.inc(572) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_inline/impl.inc(1468) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_inline/impl.inc(1735) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_stringhash.inc(306) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(443) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\y_ini/reading.inc(550) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(119) : warning 213: tag mismatch
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(120) : warning 213: tag mismatch
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(200) : warning 211: possibly unintended assignment
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(228) : warning 213: tag mismatch
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(228) : warning 211: possibly unintended assignment
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(236) : warning 213: tag mismatch
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(238) : warning 213: tag mismatch
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(238) : warning 211: possibly unintended assignment
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(246) : warning 213: tag mismatch
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(522) : warning 211: possibly unintended assignment
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(588) : warning 203: symbol is never used: "AdminInfo"
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(588) : warning 203: symbol is never used: "gMyPlayerText"
    C:\Users\a\Desktop\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(588) : warning 203: symbol is never used: "str"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    32 Warnings.

     

  8. Problema intalnita (descriere): multe warninguri de la YSI la compilare, dupa ce am pus /setadmin :|
    Ero(area / rile) / warning-(ul / urile): 

    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Core\y_debug.inc(289) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Core\y_debug.inc(298) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(419) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1010) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1032) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\..\YSI_Storage\y_amx.inc(1049) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(412) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(590) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(617) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(682) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(1079) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(1099) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_malloc/funcs.inc(435) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_malloc/funcs.inc(572) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_inline/impl.inc(1468) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_inline/impl.inc(1735) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_stringhash.inc(306) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_hooks/impl.inc(443) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\pawno\include\YSI\..\YSI_Storage\y_ini/reading.inc(550) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(159) : warning 211: possibly unintended assignment
    C:\Users\mugur\Downloads\MAIN-ROLEPLAY\gamemodes\mainroleplay.pwn(461) : warning 203: symbol is never used: "gMyPlayerText"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    21 Warnings.


    Liniile de cod / sursa / script-ul(obligatoriu):

    CMD:setadmin(playerid, params[])
    {
    	if(PlayerInfo[playerid][pAdmin] = 6)return SendClientMessage(playerid, 0xFF9900AA, "Nu esti administrator, nu poti folosi comanda. Simplu.");
    	if(sscanf(params,"ui",ID,levels)) return SendClientMessage(playerid,0xFF9900AA, "FOLOSESTE: /setadmin [Nume sau ID] [Nivel(1-6)]");//it will show this if you dont use the format properly
    	if(levels > 4) return SendClientMessage(playerid,0xFF0000FF,"POTI DA UN NIVEL DE LA 1 LA 6!");//Available levels
    	if(!IsPlayerConnected(ID))return SendClientMessage(playerid,0xFF00000,"Utilizatorul selectat nu este inregistrat.");//Detect if the id/partofname is connected
    	if(PlayerInfo[ID][pAdmin] == levels) return SendClientMessage(playerid,0xFF0000FF, "EROARE: Persoana selectata are deja acest nivel!");//Detect if the guy is already the level you setted
      	GetPlayerName(playerid,Nam, MAX_PLAYER_NAME);//define the playerid name
       	GetPlayerName(ID,pname,MAX_PLAYER_NAME);//define the other person name
       	if(levels == 0)
       	{
        	format(str, sizeof(str),"{FFFFFF}%s {FF0000}ti-a setat nivelul de administrator la {FFFFFF}%d{FF0000}.",Nam,levels);
    		SendClientMessage(ID,0xFF9900AA,str);
     		format(str, sizeof(str),"{FF0000}I-ai setat lui {FFFFFF}%s {FF0000}nivelul de administrator la {FFFFFF}%d!",pname,levels);
    		SendClientMessage(playerid,0xFF9900AA,str);
       		PlayerInfo[ID][pAdmin] = levels;//this sets the player level
       		return 1;
    	}
    	format(str, sizeof(str),"{FFFFFF}%s {FF0000}ti-a setat nivelul de administrator {FFFFFF}%d{FF0000}!",Nam,levels);
    	SendClientMessage(ID,0xFF9900AA,str);
    	format(str, sizeof(str),"{FF0000}I-ai setat lui {FFFFFF}%s {FF0000}nivelul de administrator la {FFFFFF}%d{FF0000}!",pname,levels);
    	SendClientMessage(playerid,0xFF9900AA,str);
    	PlayerInfo[ID][pAdmin] = levels;
    	return 1;
    }


    Imagini / Video (optional): Nu
    Ati incercat sa rezolvati singur?: Da

  9. 15 minutes ago, bobita said:

    Ruleaza Y_Ini, inca invat la aceste baze de date fiindca unele * lucruri imi dau dureri de cap. 

    Daca ruleaza Y_INI , ma gandesc ca ar trebui o fila .ini numita Vehicles, nu?

    Da, asa este. 

    Scriptfiles/vehicles.ini

    // cum ar trebuii sa arate
    jobnustiucare[1] = CreateVehicle(playerid, posX, posY, posZ etc)
    jobnustiucare[2] = CreateVehicle(playerid, posX, posY, posZ etc)
    CreateVehicle(playerid, posX, posY, posZ etc)

    Deci asa ar trebuii sa arate. Toate codurile care vrei sa le pui pentru masini se adauga aici

    Mi se pare ca ar trebuii sa adaugi si o linie in script, dar incearca fara.

    Imi spui daca merge.

×
×
  • 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.