Sziasztok!
Van ez a kód:
[pawn]#include <a_samp>
#define FILTERSCRIPT
//szinek
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_GREY1 0xE6E6E6FF
#define COLOR_GREY2 0xBEBEBEFF
#define COLOR_GREY3 0xA0A0A0FF
#define COLOR_GREY4 0x828282FF
new string[50];
new getPlayerName[50];
public onPlayerText(playerid,text[])
{
format(string, sizeof(string), getPlayerName(playerid)+ \" mondja: \" + text);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_GREY1,COLOR_GREY2,COLOR_GREY3,COLOR_GREY4);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, \"/s\", true))
{
format(string, sizeof(string), getPlayerName(playerid)+ \" ordítja: \" + text);
ProxDetector(60.0, playerid, string,COLOR_WHITE,COLOR_GREY1,COLOR_GREY2,COLOR_GREY3,COLOR_GREY4);
return 1;
}
if(!strcmp(cmdtext, \"/w\", true))
{
format(string, sizeof(string), getPlayerName(playerid)+ \" suttogja: \" + text);
ProxDetector(20.0, playerid, string,COLOR_WHITE,COLOR_GREY1,COLOR_GREY2,COLOR_GREY3,COLOR_GREY4);
return 1;
}
if(!strcmp(cmdtext, \"/me\", true))
{
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s %s\", string, cmdtext[4]);
ProxDetector(30.0, playerid,COLOR_WHITE,COLOR_GREY1,COLOR_GREY2,COLOR_GREY3,COLOR_GREY4);
return 1;
}
return 1;
}[/pawn]
nem mûködik.
errorok: [pawn]alapcmds.pwn(15) : error 012: invalid function call, not a valid address
alapcmds.pwn(15) : warning 215: expression has no effect
alapcmds.pwn(15) : error 001: expected token: \";\", but found \")\"
alapcmds.pwn(15) : error 029: invalid expression, assumed zero
alapcmds.pwn(15) : fatal error 107: too many error messages on one line[/pawn]
Sorok amikben vannak:
[pawn]15.sor: format(string, sizeof(string), getPlayerName(playerid)+ \" mondja: \" + text);[/pawn]
Köszi a segítséget!