29.04.2012, 09:32
// Problem fixed by MadeMan.
if(abKanep[x][kanep_rajaja][0] && strcmp(abKanep[x][kanep_rajaja], sendername) == 0)
new kanepikontroll = 0;
for(new x; x < sizeof(abKanep); x++) {
if(strcmp(abKanep[x][kanep_rajaja], sendername) == 0)
{
if(kanepikontroll == 1)
{
kanepikontroll = 1;
format(string, sizeof(string), "strcmp 1:[%s] 2:[%s] - matched strings", abKanep[x][kanep_rajaja], sendername);
SendClientMessageToAll(-1, string);
break;
}
else
{
SendClientMessage(playerid, -1, "Sa oled juba vдhemalt ьhe kanepitaime kasvatama pannud."); kanepikontroll = 0;
}
return 1;
}