02-14-2011, 07:35 AM
Both of your coding policies examples are wrong.
How are the variables passed on to that function constant in any way? It should look like this:
And this:
Should be something like that. Although I still wouldn't know what "playerMessage" would contain.
(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.