weird prob
#1

I've got a weird problem,

Quote:

CMD:flame(playerid, params[])
{
if (!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "SERVER: Unknown command.");
}
else if (IsPlayerAdmin(playerid))
{
GivePlayerWeapon(playerid, 37, 350);
SendClientMessage(playerid, COLOR_GREY, "You got a Flamethrower.");
}
return 1;
}

It says that my flamethrower has 350bullets.
but this says

Reply
#2

Anyways skip this, I just added a 0 more, its just weird but not a big problem.
Reply
#3

Are u using sscanf?
Reply
#4

Код:
CMD:flamethrower(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFF,"Error: This command is only for RCON Admins");
    GivePlayerWeapon(playerid, 37, 350);
    SendClientMessage(playerid, COLOR_GREY,"You got a flamethrower.");
    return 1;
}
Make sure you log in rcon to give yourself a flamethrower
Reply
#5

SupaVZ is right..it must be sscanf or zcmd
Reply
#6

it's the same scrip isn't it?
I have sscanf and zcmd, as my includes
Reply
#7

Yes, its the same but you if you want to script a command, sscanf have to be in it.
Reply
#8

I have init, but I already have much more commands, so that's not the prob anyways skip this THREAD, this is not a big problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)