23.02.2009, 13:30
I got some errors fixed(see red)
the blue line is getting me keeping errors.. maybe someone can give the code to me in/as [FS]filterscript?
EDIT: shit the colors don't work in code... so a lil weird but here:
#define COLOR_WHITE 0xFFFFFFAA
if(strcmp("/wanted", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "Current Wanted Suspects;");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new wantedlvl = GetPLayerWantedLevel(playerid);
if(wantedlvl > 0)
{
new wantedguy[MAX_PLAYER_NAME];
new string[MAX_PLAYER_NAME];
GetPlayerName(i, wantedguy, sizeof(wantedguy));
format(string, sizeof(string), "Name: %s || Wanted Level: %d", wantedguy, wantedlvl);
SendClientMessage(playerid, TEAM_CIVIL_COLOR, string);
}
}
SendClientMessage(playerid, COLOR_WHITE, "___________________");
}
return 1;
}
Код:
#define COLOR_WHITE 0xFFFFFFAA
if(strcmp("/wanted", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "Current Wanted Suspects;");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new wantedlvl = GetPLayerWantedLevel(playerid);
if(wantedlvl > 0)
{
new wantedguy[MAX_PLAYER_NAME];
new string[MAX_PLAYER_NAME];
GetPlayerName(i, wantedguy, sizeof(wantedguy));
format(string, sizeof(string), "Name: %s || Wanted Level: %d", wantedguy, wantedlvl);
SendClientMessage(playerid, TEAM_CIVIL_COLOR, string);
}
}
SendClientMessage(playerid, COLOR_WHITE, "___________________");
}
return 1;
}
EDIT: shit the colors don't work in code... so a lil weird but here:
#define COLOR_WHITE 0xFFFFFFAA
if(strcmp("/wanted", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "Current Wanted Suspects;");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new wantedlvl = GetPLayerWantedLevel(playerid);
if(wantedlvl > 0)
{
new wantedguy[MAX_PLAYER_NAME];
new string[MAX_PLAYER_NAME];
GetPlayerName(i, wantedguy, sizeof(wantedguy));
format(string, sizeof(string), "Name: %s || Wanted Level: %d", wantedguy, wantedlvl);
SendClientMessage(playerid, TEAM_CIVIL_COLOR, string);
}
}
SendClientMessage(playerid, COLOR_WHITE, "___________________");
}
return 1;
}

