[Tutorial] Creating a /sethp command
#2

Why are you teaching scripters to use integers for this kind of command? Yes, it will work how-ever using floats would be far more effective, and useful. You even made the variable as a float how-ever you detect it as an integer with sscanf... Also, why are you using brackets to run one function of code?

Example:
Before:
Bad coding:
pawn Code:
else
    {
    SendClientMessage(playerid, -1, "You are not authorized to use this command!");
    }
Good coding:
pawn Code:
else SendClientMessage(playerid, -1, "You are not authorized to use this command!");
Reply


Messages In This Thread
Creating a /sethp command - by DaleWestbrook - 16.06.2014, 07:36
Re: Creating a /sethp command - by Abagail - 16.06.2014, 12:18
Re: Creating a /sethp command - by NewerthRoleplay - 16.06.2014, 13:53
Re: Creating a /sethp command - by SKAzini - 17.06.2014, 13:38
Re: Creating a /sethp command - by AndreiWow - 18.11.2014, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)