Warning
#1

This is my first post, and yes I'm no expert at scripting, you could say that i'm a beginner.
So if someone can please help me, Thanks.

I get a "E:\GameTest.pwn(311) : warning 217: loose indentation"

Код:
#include <a_samp>
#include <cps>
#include <Dudb>
#include <dutils>
#pragma unused ret_mem


//----------------------------------------------------------------------------------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
  if(killerid == INVALID_PLAYER_ID)
	{
	SendDeathMessage(killerid, playerid, reason);
  SendClientMessage(playerid, light_blue, "You died and lost your money!");
  ResetPlayerMoney(playerid); 
  }
	else if (!(killerid == INVALID_PLAYER_ID))
	{

new pname[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new string[128];
new money;
  money = GetPlayerMoney(playerid); //E:\GameTest.pwn(311) : warning 217: loose indentation
  GetPlayerName(killerid,pname,sizeof(pname));
  GetPlayerName(playerid,playername,sizeof(playername));
  format(string, sizeof(string), " %s killed %s and has taken $%d from him.",pname,playername,money);
  SendDeathMessage(killerid, playerid, reason);
  SendClientMessage(playerid, light_blue, string);
  GivePlayerMoney(killerid,money);
  ResetPlayerMoney(playerid);
	}
  return 1;
  
}

}
Got one more Problem After this one
Reply


Messages In This Thread
Warning - by Mr_Assassin - 24.04.2009, 20:01
Re: Warning - by Masj - 24.04.2009, 20:06
Re: Warning - by Mr_Assassin - 24.04.2009, 20:13
Re: Warning - by Mr_Assassin - 24.04.2009, 21:08

Forum Jump:


Users browsing this thread: 1 Guest(s)