Jump to content
  • 0

undefined giveplayer


KingZone

Question

Problema intalnita (descriere):definire giveplayer
Ero(area / rile) / warning-(ul / urile):undefined giveplayer
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:staff(playerid, params[])  return cmd_astaff(playerid, params);
CMD:astaff(playerid, params[])
{
	if(playerVariables[playerid][pAdminLevel] > 6)
	{

		SendClientMessage(playerid, COLOR_WHITE, "|______________ Staff AfterSchool ______________|");
		foreach(Player, i)
		{
			if(playerVariables[i][pHelper] >= 1)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(szMessage, sizeof(string), "* {0099FF}Helper %d %s {FFFFFF}- Playeri ajutati:[%d],Ore Helper:[%d],Total Ore:[%d]",playerVariables[i][pHelper],giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}
			if(playerVariables[i][pAdminLevel] == 1)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(szMessage, sizeof(string), "* {0099FF}Admin 1 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}
			if(playerVariables[i][pAdminLevel] == 2)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(szMessage, sizeof(szMessage), "* {0099FF}Admin 2 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}
			if(playerVariables[i][pAdminLevel] == 3)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(szMessage, sizeof(szMessage), "* {0099FF}Admin 3 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}
			if(playerVariables[i][pAdminLevel] == 4)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(string, sizeof(string), "* {0099FF}Admin 4 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}
			if(playerVariables[i][pAdminLevel] == 5)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(szMessage, sizeof(szMessage), "* {0099FF}Admin 5 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}
			if(playerVariables[i][pAdminLevel] == 6)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(string, sizeof(szMessage), "* {0099FF}Admin 6 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}
			if(playerVariables[i][pAdminLevel] == 7)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(string, sizeof(szMessage), "* {0099FF}Admin 7 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}
			if(playerVariables[i][pAdminLevel] == 8)
			{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
				format(string, sizeof(szMessage), "* {0099FF}Admin 8 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]);
				SendClientMessage(playerid, COLOR_WHITE, szMessage);
				//return 1;
			}


		}
	}
	else
	{
		SendClientMessage(playerid, COLOR_GREY, "Nu poti utiliza aceasta comanda ! ");
	}
	return 1;
}


Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Da dar nam reusit!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

La inceputul comenzii pune asa

 

CMD:astaff(playerid, params[])
{
     new giveplayer[40;
	if(playerVariables[playerid][pAdminLevel] > 6)
	{

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
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.