[Code] Error somewere that I dont get
#2

Let me explain this part of your code (Read comments)
pawn Код:
if(PlayerInfo[playerid][pTazerBullets] != 0) // obviously checks if the player who typed the command has tazer bullets
{
    SafeGivePlayerWeapon(playerid, 33, 10000);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1000);
    kickgun[playerid] = 1;
    Kick(playerid);
    format(string, sizeof(string), "* %s Takes out his kickgun.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
else // if they don't have tazer bullets
{
    // sends the message, "No charges in the kickgun!"
    SendClientMessage(playerid, COLOR_GREY,"* No charges in the kickgun!");
    return 1;
}
So, maybe you didn't have TAZER BULLETS when you typed the command.
Reply


Messages In This Thread
[Code] Error somewere that I dont get - by UnknownGamer - 20.07.2012, 01:11
Re: [Code] Error somewere that I dont get - by [KHK]Khalid - 20.07.2012, 01:32

Forum Jump:


Users browsing this thread: 1 Guest(s)