14.10.2011, 19:03
Код:
NEvent.pwn(177) : warning 213: tag mismatch
Код:
EventArmor = armor;
NEvent.pwn(177) : warning 213: tag mismatch
EventArmor = armor;
CMD:seteventinfo(playerid, params [ ] )
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid))
{
if(IsThereActiveEvent == 0)
{
new string[128];
if(!sscanf(params, "s[128]", string))
{
new message[40];
if(strcmp(string,"Health",true)==0)
{
new Float:health;
if(!sscanf(params, "f", health))
{
if(health < 1 || health > 100) { SendClientMessage(playerid, COLOR_GREY, "Dont go below 1 or 100 for health"); return 1; }
EventHP = health;
format(message, sizeof(message), "You have set the Health for event to %f", health);
SendClientMessage(playerid, COLOR_LIGHTBLUE, message);
}
else
SendClientMessage(playerid, COLOR_GREY, "USAGE: /seteventinfo [health] [amounth]");
}
else if(strcmp(string,"Armor",true)==0)
{
new Float:armor;
if(!sscanf(params, "f", armor))
{
if(armor < 1 || armor > 100) { SendClientMessage(playerid, COLOR_GREY, "Dont go below 1 or 100 for armor"); return 1; }
EventArmor = armor;
format(message, sizeof(message), "You have set the Armor for event to %f", armor);
SendClientMessage(playerid, COLOR_LIGHTBLUE, message);
}
else
SendClientMessage(playerid, COLOR_GREY, "USAGE: /seteventinfo [armor] [amounth]");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /seteventinfo [name]");
SendClientMessage(playerid, COLOR_GREY, "Avaible names: Health, Armor, Gun1, Gun2, Gun3, Gun4, Gun5");
}
}
else
SendClientMessage(playerid, COLOR_GREY, "An Event is already active use /endevent to finish it");
}
else
SendClientMessage(playerid, COLOR_GREY, "You must be Logged in as RCON to use this Command");
}
return 1;
}
format(EventArmor,sizeof(EventArmor), "%f", armor);
new EventArmor;
new Float:EventArmor;
Could you also show me the line where you make "new EventArmor"?
If I am right, there is now this: pawn Код:
pawn Код:
|