Stock and actor problem
#1

I do it
Код:
#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;
}
Maybe I use wrong something. But my English isnt good so I dont know how to search it with any keywords.
Код:
(40) : error 076: syntax error in the expression, or invalid function call
Line 40:
Код:
Dude;
Reply
#2

Yeah, it's really wrong:
pawn Код:
stock Dude(playerid, issuerid, Float: amount, weaponid, bodypart)
{
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
About Dude;, you have to add its arguments (NOTE: Use actual values, don't just copy/paste):
pawn Код:
Dude(playerid, issuerid, amount, weaponid, bodypart);
Anyway, this isn't going to get you anywhere:
pawn Код:
stock Dude(playerid, issuerid, Float: amount, weaponid, bodypart)
{
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
Reply
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Yeah, it's really wrong:


About Dude;, you have to add its arguments (NOTE: Use actual values, don't just copy/paste):
pawn Код:
Dude(playerid, issuerid, amount, weaponid, bodypart);
Anyway, this isn't going to get you anywhere:
pawn Код:
stock Dude(playerid, issuerid, Float: amount, weaponid, bodypart)
{
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
Ya, I fixed
pawn Код:
stock Dude(playerid, issuerid, Float: amount, weaponid, bodypart)
{
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
But about Dude; I dont know how to fix it, I'm new at that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)