Hello There, Guest! Login or Register


Conclusion
#3
Both of your coding policies examples are wrong.

(02-14-2011, 12:06 AM)Jay link Wrote:
Code:
stock RegisterPlayerAccount( const sPlayerAccountName[], const sPlayerPassword[])
{
    SendPlayerMessage(playerid, MSG_STYLE_BOX, "You have registered an account.");
    return;
}

How are the variables passed on to that function constant in any way? It should look like this:

Code:
stock registerPlayerAccount (playerAccountName[], playerPassword[])
{
    SendPlayerMessage (playerid, MSG_STYLE_BOX, "You have registered an account.");
    return;
}

And this:

(02-14-2011, 12:06 AM)Jay link Wrote:
Code:
new bool:bIsPlayerRegisterd;
new iPlayerState;
new sPlayerMessage[128];

Code:
new bool:isPlayerRegistered;
new playerState;
new playerMessage[128];

Should be something like that. Although I still wouldn't know what "playerMessage" would contain.
Reply


Messages In This Thread
Conclusion - by Jay - 02-14-2011, 12:06 AM
Re: Conclusion - by xBlueXFoxx - 02-14-2011, 07:06 AM
Re: Conclusion - by Matthias - 02-14-2011, 07:35 AM
Re: Conclusion - by Jay - 02-14-2011, 12:26 PM
Re: Conclusion - by Matthias - 02-14-2011, 05:56 PM
Re: Conclusion - by Jay - 02-14-2011, 10:48 PM
Re: Conclusion - by Matthias - 02-15-2011, 07:09 AM
Re: Conclusion - by Jay - 02-18-2011, 06:50 PM