Quote:
Originally Posted by Xtreme_playa
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { gCommandsDisabled[playerid]=false; // you made a typo, it's gCommands not gCOmmands SendDeathMessage(killerid, playerid, reason); GetPlayerSkin(playerid); new Batz[45]; format(Batz, sizeof(Batz), "You were killed by %s", GetPName(killerid)); GameTextForPlayer(playerid,Batz, 4000,4); format(Batz, sizeof(Batz), "You killed %s", GetPName(playerid)); GameTextForPlayer(killerid,Batz, 4000,4); return 1; }
|
Ooops a mistake didn't see that. +rep And the last error after compiling.
(9450) : warning 203: symbol is never used: "zcmd_OnPlayerCommandText"
LOL but i dont have line 9450.
i think this is the problem
Код:
OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/t")==0 && cmdtext[2]=='\0')
{
if(gCommandsDisabled[playerid]==true)
{
//Text dialog
return 1:
}
//...
}