09.10.2016, 04:59
I do it
Maybe I use wrong something. But my English isnt good so I dont know how to search it with any keywords.
Line 40:
Код:
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#if defined FILTERSCRIPT
#if !defined OnPlayerTakeDamage
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerConnect(playerid)
{
SetPVarInt(playerid, "test", 1);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SetPVarInt(playerid, "test" , 0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
Dude;
return 1;
}
CMD:damage(playerid, params[])
{
return 1;
}
stock Dude(playerid, issuerid, Float: amount, weaponid, bodypart)
{
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
new string[128];
new string2[128];
if(GetPVarInt(playerid, "test") == 1)
{
SendClientMessageToAll(-1, "Actived SYSTEM");
if(issuerid != INVALID_PLAYER_ID && bodypart == 3)
{
SetPVarInt(playerid, "chest", 1);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "HE THONG SAT THUONG VER 1 (NDZ)", string, "Toi da hieu", "");
format(string, sizeof(string), "Bi thuong o nguc, so mau da mat: %0.f\n\nNguoi choi nay can cap cuu ngay lap tuc\ntrong khi cho Bac si den, neu ban muon\ngiup ho hay go /cpr [playerid]", amount);
}
if(issuerid != INVALID_PLAYER_ID && bodypart == 4)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "HE THONG SAT THUONG VER 1 (NDZ)", string2, "Toi da hieu", "");
SetPVarInt(playerid, "torso", 1);
format(string, sizeof(string2), "Bi thuong o thвn, so mau da mat: %0.f\n\nNguoi choi nay can cap cuu ngay lap tuc\ntrong khi cho Bac si den, neu ban muon\ngiup ho hay go /cpr [playerid]", amount);
}
if(issuerid != INVALID_PLAYER_ID && bodypart == 5)
{
SetPVarInt(playerid, "leftarm", 1);
}
if(issuerid != INVALID_PLAYER_ID && bodypart == 6)
{
SetPVarInt(playerid, "rightarm", 1);
}
if(issuerid != INVALID_PLAYER_ID && bodypart == 7)
{
SetPVarInt(playerid, "leftleg", 1);
}
if(issuerid != INVALID_PLAYER_ID && bodypart == 8)
{
SetPVarInt(playerid, "rightleg", 1);
}
if(issuerid != INVALID_PLAYER_ID && bodypart == 9)
{
SetPVarInt(playerid, "head", 1);
}
}
return 1;
}
Код:
(40) : error 076: syntax error in the expression, or invalid function call
Код:
Dude;


