Jump to content
  • 0

Probleme Buletin si casa!


10nuZ

Question

Salut! Scuze ca am postat si aici problemele dar vad ca de 1 luna nu imi mai raspunde lumea la problemele postate la "Probleme GodFather"....Si m-am decis sa le postez aici poate vede cineva si ma ajuta....!!!!

Problemele (sunt 2) :

1.

Salut! Am si eu o problema! Am pus casa in Propriety.cfg si Am modificat si alea la HouseInfo....Si am pus si masina la casa! Dar nu stiu dc toate casele sunt in aer cand dau /exit! adica pickup-ul ala cu Casa verde :| ... Cum pot rezolva asta?

[move]Multumesc :D.[/move]

Poza : 241458054bd2dccdd2805.JPG

2.

Salut! Am facut acum cateva minute o comanda si nu stiu dece imi da eroare la Pwno!!! Deaia cu Send Si Don`t Send!!!

Sunt sigur ca e de la comanda    dar nu stiu care e eroarea :D

Comanda e  :

//===========================================[Buletin]============================//
	if(strcmp(cmd,"/aratabuletin",true)==0) //By IonuZ
    {
        if(IsPlayerConnected(playerid))
	    {
	        tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /aratabuletin [playerid/PartOfName]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if(IsPlayerConnected(giveplayerid))
			{
				if(giveplayerid != INVALID_PLAYER_ID)
				{
				    if (ProxDetectorS(8.0, playerid, giveplayerid))
					{
					    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ca sa iti vezi singur buletinul scrie /buletin"); return 1; }
					    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
					    GetPlayerName(playerid, sendername, sizeof(sendername));
					    GetPlayerName(targetid, name, sizeof(name));
					    format(string, sizeof(string), "* %s si-a scos buletinul din portofel.", sendername);
					    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
         				format(string, sizeof(string), "** Nick:[%d].", name);
					    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
         				format(string, sizeof(string), "** Sot/Sotie:[%s].", married);
					    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
         				format(string, sizeof(string), "** Origine:[%s].", otext);
					    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
         				format(string, sizeof(string), "** Adresa:Smyle City , Casa:[%s].", housekey);
					    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
         				format(string, sizeof(string), "** Sex:[%s].", atext);
					    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
         				format(string, sizeof(string), "** Varsta:[%d].", age);
					    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
         				format(string, sizeof(string), "** Nr.Telefon:[%d].", pnumber);
					    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
					    SendClientMessage(playerid, COLOR_WHITE, "Emis De : Smyle-Zone Community!");
         				format(string, sizeof(string), "* %s ti-a aratat buletinul.", sendername);
					    SendClientMessage(giveplayerid, COLOR_GREY, string);
					    format(string, sizeof(string), "* I-ai aratat buletinul lui %s.", giveplayer);
					    SendClientMessage(playerid, COLOR_GREY, string);
 					}
					else
					{
				    	SendClientMessage(playerid, COLOR_GREY, "Acest jucator nu se afla langa tine!");
				    	return 1;
					}
				}
			}
        	else
        	{
            	SendClientMessage(playerid, COLOR_GREY, "Acest jucator este Off-Line!");
            	return 1;
        	}
        }
	}
    return 1;
}
Sau am facut ceva in genu /stats dar numai ca dupa ce  adaug urmatoarele randuri imi da eroare la el :-s
	if (strcmp(cmd, "/buletin", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (gPlayerLogged[playerid] != 0)
			{
				buletin(playerid,playerid);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not Logged in !");
			}
		}
		return 1;
	}
Erorile pe care mi le da sunt :
C:\Documents and Settings\IonuZ\Desktop\Buletin.pwn(60) : error 010: invalid function or declaration
C:\Documents and Settings\IonuZ\Desktop\Buletin.pwn(62) : error 010: invalid function or declaration
C:\Documents and Settings\IonuZ\Desktop\Buletin.pwn(64) : error 010: invalid function or declaration
C:\Documents and Settings\IonuZ\Desktop\Buletin.pwn(66) : error 021: symbol already defined: "buletin"
C:\Documents and Settings\IonuZ\Desktop\Buletin.pwn(68) : error 010: invalid function or declaration
C:\Documents and Settings\IonuZ\Desktop\Buletin.pwn(73) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

Iar daca nu adaug comanda de mai sus nu am nici-o eroare sau warning :|

crysis-02.png

041934034be04c7bc9dcd.jpg<- Apasa aici pentru a mari poza si a vedea Ip-ul serverului :D

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

1. trebe sa pun tu din property cordonatele bune ca sunt stricate

2. unde is pGunLic trebe sa adaugi si

pBuletin,

    la playerinfo[playerid] trebe sa mai adaugi si

PlayerInfo[playerid][pBuletin] = 0

    dupa

format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);

adaugi

   

format(var, 32, "Buletin=%d\n",PlayerInfo[playerid][pBuletin]);fwrite(hFile, var);

    dupa

if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }

    adaugi

if( strcmp( key , "Buletin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBuletin] = strval( val ); }

    la atakelicense trebe sa mai adaugi

else if(strcmp(x_nr,"buletin",true) == 0)

{

            tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /atl buletinlicense [playerid/PartOfName]");

    return 1;

}

giveplayerid = ReturnUser(tmp);

if(IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

        GetPlayerName(playerid, sendername, sizeof(sendername));

        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

            format(string, sizeof(string), "* I-ai luat lui %s Buletin.",giveplayer);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        format(string, sizeof(string), "* Adminul %s ti-a luat Licenta de Buletin.",sendername);

        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

        PlayerInfo[giveplayerid][pBuletin] = 0;

        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, 256, "AdmWarning: Admin %s has take License Buletin to %s.", sendername,giveplayer);

    ABroadCast(COLOR_YELLOW,string,1);

        return 1;

}

}

else

{

    SendClientMessage(playerid, COLOR_GREY, "  Acel player este Offline!");

    return 1;

}

}

        }

        else

        {

            SendClientMessage(playerid, COLOR_GREY, "  Nu esti autorizat pentru a folosi aceasta comanda!");

            return 1;

        }

    }

    return 1;

}

la agivelicense trebe adaugat

else if(strcmp(x_nr,"buletin",true) == 0)

{

            tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agivelicense buletinlicense [playerid/PartOfName]");

    return 1;

}

giveplayerid = ReturnUser(tmp);

if(IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

        GetPlayerName(playerid, sendername, sizeof(sendername));

        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

            format(string, sizeof(string), "* You've given a Buletin License to %s.",giveplayer);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        format(string, sizeof(string), "* Admin %s has given you a Buletin License.",sendername);

        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

        PlayerInfo[giveplayerid][pBuletin] = 1;

        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, 256, "AdmWarning: Admin %s has give License Buletin to %s.", sendername,giveplayer);

    ABroadCast(COLOR_YELLOW,string,1);

        return 1;

}

}

else

{

    SendClientMessage(playerid, COLOR_GREY, "  That player is Offline!");

    return 1;

}

}

        }

        else

        {

            SendClientMessage(playerid, COLOR_GREY, "  You are not authorised to use this command!");

            return 1;

        }

    }

    return 1;

}

dupa trebe sa faci comanda sa cumperi buletinu ( to dau eu ) comanda e facuta sa iei buletinu din Primarie

if(strcmp(cmd, "/buybuletin", true) == 0)

{

if(IsPlayerConnected(playerid))

{

if(PlayerToPoint(3.0,playerid,362.4364,173.2401,1008.3828))

    {

  if(PlayerInfo[playerid][pBuletin] == 0)

    {

if(PlayerInfo[playerid][pCash] >= 1000)

{

if(PlayerInfo[playerid]


>= 14)

{

SendClientMessage(playerid, COLOR_WHITE, "Nu ai 14 ani sau mai mult!");

}

    SendClientMessage(playerid, COLOR_LIGHTRED, "Acum ai un BULETIN!");

    GivePlayerMoney(playerid, -1000);

PlayerInfo[playerid][pBuletin] = 1;

GameTextForPlayer(playerid, "~r~-1000", 5000, 1);

}

else

{

SendClientMessage(playerid, COLOR_GREY,"  Nu ai $1000 !");

}

}

else

{

SendClientMessage(playerid, COLOR_GREY,"  Ai deja un BULETIN !");

}

}

}

}

la givelicense trebe inca

else if(strcmp(x_nr,"buletin",true) == 0)

{

            tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givelicense buletinlicense [playerid/PartOfName]");

    return 1;

}

giveplayerid = ReturnUser(tmp);

if(IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

        GetPlayerName(playerid, sendername, sizeof(sendername));

        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

            format(string, sizeof(string), "* You've given a Buletin License to %s.",giveplayer);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        format(string, sizeof(string), "* Instructor %s has given you a Buletin License.",sendername);

        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

        PlayerInfo[giveplayerid][pBuletin] = 1;

        return 1;

}

}

else

{

    SendClientMessage(playerid, COLOR_GREY, "  That player is Offline !");

    return 1;

}

}

        }

la take trebe adaugat

else if(strcmp(x_nr,"buletin",true) == 0)

{

    tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {

SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take buletinlicense [playerid/PartOfName]");

return 1;

}

giveplayerid = ReturnUser(tmp);

if(IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

        if (ProxDetectorS(8.0, playerid, giveplayerid))

{

        format(string, sizeof(string), "* You have taken away %s's Buletin License.", giveplayer);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        format(string, sizeof(string), "* Officer %s has taken away your Buletin License.", sendername);

        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

        PlayerInfo[giveplayerid][pBuletin] = 0;

        }

        else

{

    SendClientMessage(playerid, COLOR_GREY, "  That player is not near you !");

    return 1;

}

    }

}

else

{

    SendClientMessage(playerid, COLOR_GREY, "  That player is Offline !");

    return 1;

}

}

else

{

SendClientMessage(playerid, COLOR_GREY, "  Unknown Take name !");

return 1;

}

        }

comanda sa vezi buletinu tu

if(strcmp(cmd,"/buletin",true)==0)

    {

        if(IsPlayerConnected(playerid))

    {

if(PlayerInfo[playerid][pBuletin] == 1)

{

GetPlayerName(playerid, sendername, sizeof(sendername));

new otext[20];

if(PlayerInfo[playerid][pOrigin] == 1) { otext = "SF"; }

else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "LS"; }

new atext[20];

if(PlayerInfo[playerid][pSex] == 1) { atext = "Male"; }

else if(PlayerInfo[playerid][pSex] == 2) { atext = "Female"; }

        SendClientMessage(playerid, COLOR_LIGHTRED, "Your Buletin");

        format(string, sizeof(string), "~b~RO~y~MA~r~NIA~n~~w~Name: %s~n~~w~Age: %d~n~~w~Origin: %s~n~~w~Sex: %s.", sendername,PlayerInfo[playerid]


,otext,atext);

comanda sa areti buletinu la careva

if(strcmp(cmd,"/showbuletin",true)==0)

    {

        if(IsPlayerConnected(playerid))

    {

        tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showbuletin [playerid/PartOfName]");

return 1;

}

giveplayerid = ReturnUser(tmp);

if(IsPlayerConnected(giveplayerid))

{

if(giveplayerid != INVALID_PLAYER_ID)

{

    if (ProxDetectorS(8.0, playerid, giveplayerid))

{

if(PlayerInfo[playerid][pBuletin] < 1)

{

SendClientMessage(playerid, COLOR_WHITE, "You don't have a buletin to show!");

}

    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Show your Buletin to yourself, use /showbuletin!"); return 1; }

GetPlayerName(playerid, sendername, sizeof(sendername));

GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

new otext[20];

if(PlayerInfo[playerid][pOrigin] == 1) { otext = "SF"; }

else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "LS"; }

new atext[20];

if(PlayerInfo[playerid][pSex] == 1) { atext = "Male"; }

else if(PlayerInfo[playerid][pSex] == 2) { atext = "Female"; }

        SendClientMessage(giveplayerid, COLOR_LIGHTRED, "A Buletin");

        format(string, sizeof(string), "~r~RO~y~MAN~b~IA~n~~w~Name: %s~n~~w~Age: %d~n~~w~Origin: %s~n~~w~Sex: %s.", sendername,PlayerInfo[playerid]


,otext,atext);

la    else if (PlayerToPoint are trebui adaugata

else if (PlayerToPoint(3, i,362.4364,173.2401,1008.3828))

{

    GameTextForPlayer(i, "~w~Type: ~r~~h~/buybuletin ~w~ to buy a ~b~Buletin ~n~~w~Cost: ~g~~h~$1000", 3000, 5);

    }

iar daca vrei sa apara I de unde iti ei buletinu

AddStaticPickup(1239, 23, 362.4364,173.2401,1008.3828);//Buletin

GameTextForPlayer(giveplayerid, string, 5000, 1);

format(string, sizeof(string), "* %s has shown his Buletin to you.", sendername);

SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

format(string, sizeof(string), "* You have shown your Buletin to %s.", giveplayer);

SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

}

else

{

    SendClientMessage(playerid, COLOR_GREY, "  That player is not near you !");

    return 1;

}

}

}

        else

        {

            SendClientMessage(playerid, COLOR_GREY, "  That player is Offline !");

            return 1;

        }

}

    return 1;

}

GameTextForPlayer(playerid, string, 5000, 1);

}

}

    return 1;

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.