I got that one fixed already. I got another problem now.
Код:
Build.pwn
Line(s) 14270-14285
stock split(const strsrc[], strdest[][], delimiter = '|')
{
new i, li, aNum, len, srclen = strlen(strsrc);
while(i <= srclen)
{
if (strsrc[i] == delimiter || i == srclen)
{
len = strmid(strdest[aNum], strsrc, li, i, 128);
strdest[aNum][len] = 0;
li = i + 1;
aNum++;
}
i++;
}
return 1;
}
Код:
Commands.pwn
Line(s) 15628-15726
new old_tick_rate = Streamer_GetTickRate();
Streamer_SetTickRate(tick_rate);
new string[128];
format(string, sizeof(string), "Streamer tick rate has been set from %i to %i.", old_tick_rate, tick_rate);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
//============================================//
COMMAND:streamermaxitems(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
new type, max_items;
if(sscanf(params, "ii", type, max_items))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamermaxitems [type] [max items]");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area");
return 1;
}
new old_max_items = Streamer_GetMaxItems(type);
Streamer_SetMaxItems(type, max_items);
new string[128];
format(string, sizeof(string), "Streamer maximum items have been set from %i to %i.", old_max_items, max_items);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
//============================================//
COMMAND:streamervisibleitems(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
new type, visible_items;
if(sscanf(params, "ii", type, visible_items))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamervisibleitems [type] [max visibl items]");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area");
return 1;
}
new old_visible_items = Streamer_GetVisibleItems(type);
Streamer_SetVisibleItems(type, visible_items);
new string[128];
format(string, sizeof(string), "Streamer maximum visible items have been set from %i to %i.", old_visible_items, visible_items);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
//============================================//
COMMAND:streamerradius(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
new type, radius;
if(sscanf(params, "if", type, radius))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamerradius [type] [radius]");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP");
SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area");
return 1;
}
new Float:old_radius;
Streamer_GetRadiusMultiplier(type, old_radius);
Streamer_SetRadiusMultiplier(type, radius);
new string[128];
format(string, sizeof(string), "Streamer radius has been set from %f to %f.", old_radius, radius);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
//============================================//
COMMAND:streamercameraupdate(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
if(Streamer_IsToggleCameraUpdate(playerid) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Streamer camera updating has been turned on.");
Streamer_ToggleCameraUpdate(playerid, 1);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Streamer camera updating has been turned off.");
Streamer_ToggleCameraUpdate(playerid, 0);
}
return 1;
}
//============================================//
COMMAND:streameridleupdate(playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command.");
if(Streamer_IsToggleIdleUpdate(playerid) == 0)