Code:
CMD:save(playerid, params[]
{
const MESSAGE_LENGTH_LIMIT = 100;
if (strlen(params) > MESSAGE_LENGTH_LIMIT)
return 0; // You probably want to return error message to player here.
strcpy(PlayerInfo[playerid][pMessage], params);
SaveMessage(playerid);
return 1;
}
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.