02.02.2012, 12:42
This FS uses only one Function. If someone begginner want to learn how to script and he/she really wants it then I believe he/she will read the wiki. SendClientMessage is the first function I learnt, so I think is a bit impossible someone doesn't know it. Anyway, as this is your first FS and I will don't say more but one very simple note.
It should return a value on the end of the command.
It should return a value on the end of the command.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/help",cmdtext)) {
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
return 1; // it needs to return a value here.
}
return 0;
}

