Message about saving - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Message about saving (
/showthread.php?tid=82669)
Message about saving -
Liustas - 19.06.2009
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;
}
Re: Message about saving -
Danny_Costelo - 19.06.2009
/save won't work, It's called from the SA:MP client before any other command, so you can't have a similar command, same with /q.