Message about saving
#1

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;
  }
Reply
#2

/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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)