Jump to content
  • 0

Am si eu 2 intraberi


alexter

Question

9 answers to this question

Recommended Posts

da tu nu o poti face?e chiar asa de greu?trebuie sa gandesti un pic inainte sa faci o comanda

Proiecte:

Hospital Interior-0%(neinceput)

Limo Interior-0%(inceput)

Bank Interior-0%(neinceput)

Bus Interior-0%(inceput)

Plane Interior-0%(neinceput)

Train Interior-0%(neinceput)

Boat Interior-95%(terminat,mici retusuri)

Mini-Scripturi care au fost publicate:

GPS System: http://forum.sa-mp.ro/filter-scripts-and-gamemodes/%28fs%29-gps-system/

Link to comment
Share on other sites

if(strcmp(cmd,"/idcard",true)==0)
    {
        if(IsPlayerConnected(playerid))
	    {
	        tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /idcard [playerid/PartOfName]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if(IsPlayerConnected(giveplayerid))
			{
				if(giveplayerid != INVALID_PLAYER_ID)
				{
				    if (ProxDetectorS(8.0, playerid, giveplayerid))
					{
					    
					     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
					    SendClientMessage(giveplayerid, COLOR_WHITE, "|_________ Identification Card _________|");
	      	  			format(string, sizeof(string), "** Name: %s.", sendername);
						SendClientMessage(giveplayerid, COLOR_GREY, string);
						format(string, sizeof(string), "** Phone Number: %d.", PlayerInfo[playerid[pPnumber]);
						SendClientMessage(giveplayerid, COLOR_GREY, string);
						format(string, sizeof(string), "** City: Los Santos.");
						SendClientMessage(giveplayerid, COLOR_GREY, string);
                                                format(string, sizeof(string), "** Sex: %d.", PlayerInfo[playerid][pSex]);
						SendClientMessage(giveplayerid, COLOR_GREY, string);
						ormat(string, sizeof(string), "** Age: %d.", PlayerInfo[playerid][pAge]);
						SendClientMessage(giveplayerid, COLOR_GREY, string);
						format(string, sizeof(string), "** Wanted: %d.", WantedLevel[playerid]);
						SendClientMessage(giveplayerid, COLOR_GREY, string);
						SendClientMessage(giveplayerid, COLOR_WHITE, "|____________________________________|");
						format(string, sizeof(string), "* %s is showing his identification card to %s.", sendername ,giveplayer);
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					}
					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;

scz pt dublu post,nu-mi merge edit :| zi-mi daca merge

Proiecte:

Hospital Interior-0%(neinceput)

Limo Interior-0%(inceput)

Bank Interior-0%(neinceput)

Bus Interior-0%(inceput)

Plane Interior-0%(neinceput)

Train Interior-0%(neinceput)

Boat Interior-95%(terminat,mici retusuri)

Mini-Scripturi care au fost publicate:

GPS System: http://forum.sa-mp.ro/filter-scripts-and-gamemodes/%28fs%29-gps-system/

Link to comment
Share on other sites

F:\Srv-Hostate\samp03asvr_R3_win32\gamemodes\ModernTopia.pwn(17522) : error 028: invalid subscript (not an array or too many subscripts): "playerid"
F:\Srv-Hostate\samp03asvr_R3_win32\gamemodes\ModernTopia.pwn(17522) : warning 215: expression has no effect
F:\Srv-Hostate\samp03asvr_R3_win32\gamemodes\ModernTopia.pwn(17522) : error 001: expected token: ";", but found "]"
F:\Srv-Hostate\samp03asvr_R3_win32\gamemodes\ModernTopia.pwn(17522) : error 029: invalid expression, assumed zero
F:\Srv-Hostate\samp03asvr_R3_win32\gamemodes\ModernTopia.pwn(17522) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

imi da errorile acestea ???

Link to comment
Share on other sites

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

    {

        if(IsPlayerConnected(playerid))

    {

        tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

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

return 1;

}

giveplayerid = ReturnUser(tmp);

if(IsPlayerConnected(giveplayerid))

{

if(giveplayerid != INVALID_PLAYER_ID)

{

    if (ProxDetectorS(8.0, playerid, giveplayerid))

{

    }

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

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

    SendClientMessage(giveplayerid, COLOR_WHITE, "|_________ Identification Card _________|");

        format(string, sizeof(string), "** Name: %s.", sendername);

SendClientMessage(giveplayerid, COLOR_GREY, string);

format(string, sizeof(string), "** Level: %d.", PlayerInfo[playerid][pLevel]);

SendClientMessage(giveplayerid, COLOR_GREY, string);

format(string, sizeof(string), "** Phone Number: %d.", PlayerInfo[playerid][pPnumber]);

SendClientMessage(giveplayerid, COLOR_GREY, string);

format(string, sizeof(string), "** City: Los Santos.");

SendClientMessage(giveplayerid, COLOR_GREY, string);

format(string, sizeof(string), "** Age: %d.", PlayerInfo[playerid]


);

SendClientMessage(giveplayerid, COLOR_GREY, string);

SendClientMessage(giveplayerid, COLOR_WHITE, "|____________________________________|");

format(string, sizeof(string), "* %s is showing his identification card to %s.", sendername ,giveplayer);

ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

}

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;

}

Proiecte:

Hospital Interior-0%(neinceput)

Limo Interior-0%(inceput)

Bank Interior-0%(neinceput)

Bus Interior-0%(inceput)

Plane Interior-0%(neinceput)

Train Interior-0%(neinceput)

Boat Interior-95%(terminat,mici retusuri)

Mini-Scripturi care au fost publicate:

GPS System: http://forum.sa-mp.ro/filter-scripts-and-gamemodes/%28fs%29-gps-system/

Link to comment
Share on other sites

http://pastebin.com/m6345ebe3

Proiecte:

Hospital Interior-0%(neinceput)

Limo Interior-0%(inceput)

Bank Interior-0%(neinceput)

Bus Interior-0%(inceput)

Plane Interior-0%(neinceput)

Train Interior-0%(neinceput)

Boat Interior-95%(terminat,mici retusuri)

Mini-Scripturi care au fost publicate:

GPS System: http://forum.sa-mp.ro/filter-scripts-and-gamemodes/%28fs%29-gps-system/

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

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