26.08.2014, 15:41
Код HTML:
F:\Program Files\test\gamemodes\SATDM_1.pwn(60648) : error 003: declaration of a local variable must appear in a compound block F:\Program Files\test\gamemodes\SATDM_1.pwn(60648) : error 091: ambiguous constant; tag override is required (symbol "name") F:\Program Files\test\gamemodes\SATDM_1.pwn(60648) : warning 215: expression has no effect F:\Program Files\test\gamemodes\SATDM_1.pwn(60648) : error 001: expected token: ";", but found "]" F:\Program Files\test\gamemodes\SATDM_1.pwn(60648) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PHP код:
CMD:loadmap(playerid,params[])
{
if(PlayerInfo[playerid][Level] >= 1)
new name[128];
if(sscanf(params,"s[50]",name)) return SendClientMessage(playerid,RED,"Usage : /loadmap ""<filename>");
format(name,128,"Maps/%s.txt",NaMe);
LoadSAMPMap(playerid,name,1);
return 1;
}
CMD:deletemap(playerid,params[]) return cmd_removemap(playerid,params);
CMD:removemap(playerid,params[])
{
if(PlayerInfo[playerid][Level] >= 1)
new name[128];
if(sscanf(params,"s[50]",name)) return SendClientMessage(playerid,RED,"Usage : /removemap ""<Map name>");
format(name,128,"Maps/%s",name);
RemoveMap(playerid,params);
return 1;
}
CMD:reloadmap(playerid,params[])
{
if(PlayerInfo[playerid][Level] >= 1)
new name[128];
if(sscanf(params,"s[50]",name)) return SendClientMessage(playerid,RED,"Usage : /loadmap "_"<filename>");
format(name,128,"Maps/%s.txt",name);
RemoveMap(playerid,params);
LoadSAMPMap(playerid,name,1);
return 1;
}