Jump to content

Problema amxx-studio!


shadow2cs
 Share

Recommended Posts

Salut!! As vrea sa imi spuneti cum sa copilez un sma cu amxx-studio, am incercat de multe ori, dar imi da o eroare!!

Spuneti-mi va rog cum se face , pas cu pas sa pot intelege!!

As dori sa imi apuneti ce trebuie sa completez aici: http://postimage.org/image/btarnz3wl/

 

Multumesc!

 

http://www.amxmodx.org/webcompiler.cgi

Link to comment
Share on other sites

Am incercat sa copilez si pe site-ul asta, dar nu merge, uite ce imi da :| :

 

 

/tmp/textpl2MoD.sma(19) : error 029: invalid expression, assumed zero

/tmp/textpl2MoD.sma(19 -- 21) : error 008: must be a constant expression; assumed zero

 

2 Errors.

Could not locate output file /home/groups/amxmodx/public_html/websc3/textpl2MoD.amx (compile failed).

Link to comment
Share on other sites

Am incercat sa copilez si pe site-ul asta, dar nu merge, uite ce imi da :| :

 

 

/tmp/textpl2MoD.sma(19) : error 029: invalid expression, assumed zero

/tmp/textpl2MoD.sma(19 -- 21) : error 008: must be a constant expression; assumed zero

 

2 Errors.

Could not locate output file /home/groups/amxmodx/public_html/websc3/textpl2MoD.amx (compile failed).

 

Normal ca nu merge daca e gresit.. uite si tu randurile si corecteaza-le..

Link to comment
Share on other sites

Uite codul corect:

#include < amxmodx >
#include < amxmisc >
#define PLUGIN "Messages Shower"
#define VERSION "1.0"
#define AUTHOR "Alka"
#define ADVERTISING_TIME 60.0
stock const messages [ ] [ ] =
{
"^x04 Il cauti pe BoSs? Atunci, il gasesti la id: ^x03 ionut_dariciuc!",
  "^x04 Il cauti pe Snake? Atunci, il gasesti la id: ^x03 kovacs_snake2013!",
"^x04 Acest server este gazduit de: ^x03 DEVILCS.RO",
"^x04 Toate cererrile ptr. admin se fac  pe forum ^x03 http://devilcs.ro/forum",
"^x04 Adminele nu se dau gratis!! Pentru mai multe detalii, folositi comanda ^x03 /preturi",
  "^x04 Bine ati venit pe ^x03 ORADEA.DEVILCS.RO!!",
  "^x04 DEVILCS.RO ^x03 Va ureata bafta la fraguri!!",
  "^x04 Nu uitati sa adugati serverul nostru la ^x03 FAVORITE!!"
}
public plugin_init ( )
{
register_plugin ( PLUGIN, VERSION, AUTHOR )

set_task ( ADVERTISING_TIME, "show_messages", _, _, _,"b" );
}
public show_messages ( )
{
new Buffer[256];
formatex(Buffer, sizeof Buffer - 1, "^x04%s", messages[random(sizeof messages)]);

new players[32], num, id;
get_players(players, num);

for(new i = 0 ; i < num ; i++)
{
 id = players[i]

 message_begin(MSG_ONE, get_user_msgid("SayText"), _, id);
 write_byte(id);
 write_string(Buffer);
 message_end();
}
}

Il poti compila cu succes online aici: http://www.amxmodx.org/webcompiler.cgi .

Asta e compilat de mine dar este tinut doar 10 minute.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • 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.