Jump to content
  • 0

Problema /stats


Speaker22

Question

Ma ajutati si pe mine va rog din suflet

[pawn]#if defined FILTERSCRIPT

#include <a_samp>

enum pInfo

{

pCash,

pKills,

pDeaths,

pRank,

pGameTime,

pVisits

}

new PlayerInfo[MAX_PLAYERS][pInfo];

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/stats", cmdtext, true, 10) == 0)

{

if(IsPlayerConnected(playerid))

{

new statstring[128];

format(statstring, sizeof(statstring), "| Statistici | Ucideri: %d | Decese: %d | Bani: $%d |",PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],GetPlayerMoney(playerid));

SendClientMessage(playerid,-1, statstring);

}

return 1;

}

return 0;

}

#endif[/pawn]

la aceasta imi da

[pawn]D:\Documents and Settings\George.GEORGE-6EC272F4\Desktop\Sa-MP Servers\filterscripts\Stats.pwn(31) : error 013: no entry point (no public functions)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

Ajutatima va rog din suflet sa numi mai dea error. Multumesc.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

cred ca ar trebui sa adauge:

[pawn]

public OnFilterScriptInit()

{

print("--------------------------------------");

print("- ...Bla Bla Bla ce vrei tu aici ....");

print("---------------------------------------");

return 1;

}

[/pawn]

9zZndmN.png
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.