Detaljan opis problema: Znaci kad ubacim komandu onda mi dode 4 errora
Dio skripte:
if(strcmp(cmd, "/ubij", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristite: "ZELENA"/ubij [playerid/Dio imena]");
return 1;
}
new playa;
new health;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
health = strval(tmp);
if (PlayerInfo >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
SetPlayerHealth(playa, health);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, ""ZUTA"UBIJ | "CRVENA"Admin: "BJELA"%s je ubio igraca: "BJELA"%s.", sendername,giveplayer);
ABroadCast(COLOR_YELLOW,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, ""CRVENA"Obavijest | "BJELA"Nemate ovlasti da koristite ovu komandu.");
}
}
return 1;
}Errori:
C:\Users\Dino\Desktop\BWW RP1\gamemodes\bwwrp.pwn(27368) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Dino\Desktop\BWW RP1\gamemodes\bwwrp.pwn(27368) : error 017: undefined symbol "ZELENA"
C:\Users\Dino\Desktop\BWW RP1\gamemodes\bwwrp.pwn(27368) : error 037: invalid string (possibly non-terminated string)
C:\Users\Dino\Desktop\BWW RP1\gamemodes\bwwrp.pwn(27368) : fatal error 107: too many error messages on one line