Detaljan opis problema:Baca mi neke greske na komandi sethp
Deo Skripte:
COMMAND:sethp(playerid, params[])
if(IsPlayerConnected(playerid))SendClientMessage(playerid, NARANDZASTA "Niste ulogovani!
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, NARANDZASTA, "|{D9B800}LIP {00C3FF} [ID/Deo Imena] ");
return 1;
}
new playa;
new health;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
health = strval(tmp);
if (PI == 1 || PI >= 2 || PI >= 3)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
JBC_SetPlayerHealth(playa, health);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "Admin je postavio igracu HP.", sendername,giveplayer,health);
ABroadCast(COLOR_YELLOW,string,1);
}
}
}
else
{
SendClientMessage(playerid, NARANDZASTA, "|{D9B800}LIP {00C3FF} Samo Admini!");
}
}
return 1;
}
}C:\Users\Salipur\Desktop\Life in Prison\pawno\include\YSI\y_inline.inc(265) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Salipur\Desktop\Life in Prison\pawno\include\YSI\y_inline.inc(312) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Salipur\Desktop\Life in Prison\pawno\include\YSI\y_inline.inc(1000) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Salipur\Desktop\Life in Prison\gamemodes\LIP.pwn(99) : warning 217: loose indentation
C:\Users\Salipur\Desktop\Life in Prison\gamemodes\LIP.pwn(139) : error 029: invalid expression, assumed zero
C:\Users\Salipur\Desktop\Life in Prison\gamemodes\LIP.pwn(139) : error 017: undefined symbol "cmd_sethp"
C:\Users\Salipur\Desktop\Life in Prison\gamemodes\LIP.pwn(139) : error 029: invalid expression, assumed zero
C:\Users\Salipur\Desktop\Life in Prison\gamemodes\LIP.pwn(139) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.