Jump to content

Question

Posted

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.

8 answers to this question

Recommended Posts

Posted

Of, of of,  :D Ai vazut ce a zis darky, dar nai facut lafel  :shocked: astea trebuie puse in gm in nici un caz ca un nou FS!

9zZndmN.png
Posted

Incearca sa adaugi :

[pawn]main()

{

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

    print("|        Stats Command        |");

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

}[/pawn]

Sau adauga comanda /stats in gamemode.

Posted

cred ca ar trebui sa adauge:

[pawn]

public OnFilterScriptInit()

{

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

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

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

return 1;

}

[/pawn]

9zZndmN.png
Posted

Ca sa faci un FS iti trebuie OnFilterScriptInt OnFilterScriptExit ...

communitylogosml.png

94.23.120.101:7778

Guest farse
Posted

#define FILTERSCRIPT inainte de #if defined

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.