22.09.2013, 23:51
can somebody tell me what is these numbers meaning ?
reason[50], string[200]
if(sscanf(params, "us[50]")
reason[50], string[200]
if(sscanf(params, "us[50]")
public OnPlayerConnect(playerid)
{
new string[200]; //this means i can only have 200 letters
format(string, sizeof(string), "SERVER: Welcome %s", RPN(playerid)); // in this line here
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
new targetid, reason[5];
if(sscanf(params, "us[5]", targetid, reason))");
pawn Код:
|
if(sscanf(params, "us[5]", targetid, reason)) // send an error message about the syntax
new targetid, reason[50];
if(sscanf(params, "us[50]", targetid, reason)) return SendClientMessage(playerid, -1, "Syntax: /command_here <ID/Part Of Name> <reason>");
if(strlen(reason) > 50) return SendClientMessage(playerid, -1, "Reason can be only 50 characters");