30.05.2010, 20:30
Add if(!strlen(scritta)) return SendClientMessage(playerid,COLOR_RED," Use: /player_on [TEXT]");
For check if player write text...
if you "filtre" the [ or ]
add end of you script
And in the command
if(CheckText(scritta)) return SendClientMessage(playerid,COLOR_RED," Not write [ or ]!");
For check if player write text...
if you "filtre" the [ or ]
add end of you script
pawn Код:
CheckText(string[])
{
for(new i = 0; i < sizeof(string); i++)
{
if(string[i] == ']' || string[i] == '[') return 1;
}
return 0;
}
if(CheckText(scritta)) return SendClientMessage(playerid,COLOR_RED," Not write [ or ]!");