10.01.2015, 20:07
Hello guys
i have error in my cmd nitro
cmd
CMD i cant use it im Admin Lvl 8 why ?
i have error in my cmd nitro
Quote:
D:\fa\gamemodes\willsee.pwn(9499) : error 029: invalid expression, assumed zero D:\fa\gamemodes\willsee.pwn(9499) : error 017: undefined symbol "cmd_nitro" D:\fa\gamemodes\willsee.pwn(9499) : error 029: invalid expression, assumed zero D:\fa\gamemodes\willsee.pwn(9499) : fatal error 107: too many error messages on one line |
PHP код:
CMD:nitro(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pAdmin] >= 8)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_LIGHTYELLOW,"You must be in a vehicle!");
AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
SendClientMessage(playerid,COLOR_LIGHTYELLOW,"Nitro added!"); //No idea what colour that is though.
return 1;
}
PHP код:
CMD:setweather(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pAdmin] >= 8)
{
new string[128],weather;
if(sscanf(params, "i", weather)) return SendClientMessage(playerid, COLOR_ORCHID, "USAGE: /setweather [weatherid]");
if(weather > 45 || weather < 0) return SendClientMessage(playerid, COLOR_RED, "Invalid weather ID.");
format(string,sizeof(string),"Administrator %s (%d) has setted all players weather to %d.",PlayerName(playerid),playerid,weather);
SendClientMessageToAll(COLOR_LIGHTRED,string);
SetWeather(weather);
}
else SendClientMessage(playerid, COLOR_RED,"You're not authorized to use this command !");
return 1;
}