23.02.2009, 13:55
how to make something that say if you repeat yourself:
"Don't Repeat yourself!"
"Don't Repeat yourself!"
//OnPlayerText
static stext[MAX_PLAYERS][128];
if(!strfind(text, stext[playerid], true))
return SendClientMessage(playerid, 0xFFFFFFAA, "Don't Repeat yourself!"), false;
format(stext[playerid], sizeof stext[], text);
Originally Posted by pawn-lang.pdf
State variable declarations
A state variable is a global variable with a state classier appended at the end. The scope and the lifespan of the variable are restricted to the states that are listed in the classier. |
Originally Posted by ♣ ⓐⓢⓢ
pawn Code:
hello hello -> "Don't Repeat yourself!" and dont sends the hello in public or hello hellottt -> "Don't Repeat yourself!" and dont sends the hellottt in public |