29.01.2014, 17:13
Quote:
By "PAWN is not threadsafe" we mean that running two threads within PAWN will corrupt data and make you loose information, run code that shouldn't be run, and then just crash.
|
here's the code:
PHP код:
new string[180];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
format(string,sizeof(string),"Bla bla bla %s",blablabla);
SendClientMessage(playerid,RED,string);
return 1;
}
else if (strcmp("/mycommand2", cmdtext, true, 10) == 0)
{
format(string,sizeof(string),"Bla bla bla 2 %s",blablabla2);
SendClientMessage(playerid,RED,string);
return 1;
}
return 0;
}
Sorry for English.