|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Jun 2011
Location: Veles, Macedonia
Posts: 98
Reputation: -1
|
I try to compile this command
Code:
if(strcmp(cmd, "/novi", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] < 3)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(nTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Morate pricekati 2 minute!");
format(string, 256, ""COLOR_RED"|CityBot|{FFFFFF} "COLOR_RED"%s {FFFFFF}je novi igrac i treba mu pomoc!",sendername);
ABroadCast(COLOR_WHITE,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "* Hvala na prijavi, Admini i GameShark-si ce odgovoriti u najkracem roku!");
nTime[playerid] = 1;
SetTimerEx("Novi", 120000, false, "%d", playerid);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "("COLOR_RED"Greska{FFFFFF}!) Samo igraci do levela "COLOR_RED"3!");
}
}
return 1;
}
But i get this errors: Code:
D:\PC Games\GTA San Andreas\Crime City RPG Macedonia\gamemodes\blrp.pwn(38302) : error 001: expected token: "-string end-", but found "-identifier-" D:\PC Games\GTA San Andreas\Crime City RPG Macedonia\gamemodes\blrp.pwn(38302) : error 001: expected token: "-string end-", but found "-identifier-" D:\PC Games\GTA San Andreas\Crime City RPG Macedonia\gamemodes\blrp.pwn(38302) : warning 215: expression has no effect D:\PC Games\GTA San Andreas\Crime City RPG Macedonia\gamemodes\blrp.pwn(38302) : error 001: expected token: ";", but found "-integer value-" D:\PC Games\GTA San Andreas\Crime City RPG Macedonia\gamemodes\blrp.pwn(38302) : fatal error 107: too many error messages on one line LINE 38302: Code:
format(string, 256, ""COLOR_RED"|CityBot|{FFFFFF} "COLOR_RED"%s {FFFFFF}je novi igrac i treba mu pomoc!",sendername);
|
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2011
Location: Latvia
Posts: 385
Reputation: 22
|
Code:
"COLOR_RED" |
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: Jun 2011
Location: Veles, Macedonia
Posts: 98
Reputation: -1
|
#define COLOR_RED 0xAA3333AA
|
|
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2012
Location: Cyprus.
Posts: 217
Reputation: 5
|
Try this, i think this is what you want to do:
pawn Code:
|
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Jun 2011
Location: Veles, Macedonia
Posts: 98
Reputation: -1
|
thanks Rafaellos
but i fixed it on other way... I change the #define COL_RED and it compiled without errors ![]() Shetch rep+1 Rafaellos rep+1 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with a command i have 1 error | boyan96 | Scripting Help | 5 | 29/08/2011 05:50 PM |
| An error has occured. (Error ID: 2014, Commands out of sync; you can't run this command now) | Tom_Dedi | Help Archive | 3 | 07/11/2010 01:01 PM |
| error with command /pay | Shellegg | Help Archive | 9 | 31/03/2009 11:25 AM |
| Error with command | JoeDaDude | Help Archive | 3 | 05/02/2009 11:09 PM |