19.06.2009, 21:07
This code compiles fine, but doesn't work Why? 

Код:
#include <IsPlayerLAdmin>
new Xname[ 24 ];
new stringC [56];
if (strcmp(cmdtext, "/save", true)==0)
{
GetPlayerName( playerid, Xname, 24 );
new File:pos=fopen("Antisaveing.txt", io_append);
format(stringC, 56, "%s–trying to copy your cordinates\%s\r\n",Xname);
fwrite(pos, stringC);
fclose(pos);
SendClientMessageToAll(COLOR_RED, stringC);
}
else if(IsPlayerAdminLevel(playerid, 10))
{
SendClientMessage(playerid, COLOR_YELLOW, "You saved smth");
return 1;
}

