28.11.2009, 13:55
Hello,i got problem with setfreq,it should put ur pMember to the number what you want,but it wont change it:S any help?
heres the command
and uhh how to make it that if you put other number what u cant it says /setfreq 20-99
heres the command
and uhh how to make it that if you put other number what u cant it says /setfreq 20-99
pawn Код:
if(strcmp(cmd, "/setfreq", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pRadio] == 1)
{
new stat;
stat = strval(tmp);
tmp = strtok(cmdtext, idx);
new amount;
amount = strval(tmp);
switch (stat)
{
case 16:
{
PlayerInfo[playerid][pMember] = 17;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Connected to Freq 17");
}
case 17:
{
PlayerInfo[playerid][pMember] = 18;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Connected to Freq 18");
}
case 18:
{
PlayerInfo[playerid][pMember] = 19;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Connected to Freq 19");
}
case 19:
{
PlayerInfo[playerid][pMember] = 20;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Connected to Freq 20");
}
case 20:
{
PlayerInfo[playerid][pMember] = 21;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Connected to Freq 21");
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, " You dont have a radio!");
return 1;
}
return 1;
}