24.04.2009, 20:01
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"
Got one more Problem After this one 
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;
}
}


