SA-MP Forums Archive
print(f) bug? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: print(f) bug? (/showthread.php?tid=115462)



print(f) bug? - SiJ - 24.12.2009

Hey,
I tried using print(f) in my NPC scripts but it never printed anything in console... Those scripts works fine but print function doesn't... :S

This is my script:
pawn Код:
public OnPlayerText(playerid, text[])
{
  if (strfind(text, "stupid bot") != -1)
  {
    new string[80], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
        print("testing print func");
    format(string, sizeof(string), "Hey %s! You are so mean, you make me so sad!", name);
    SendChat(string);
  }

}
SendChat works, but print - doesn't...


Re: print(f) bug? - d0 - 24.12.2009

The npcs are running on a own proccess. The 'samp-npc.exe' can't print something to the 'samp-server.exe' console(same for linux).


Re: print(f) bug? - dugi - 24.12.2009

You can use DebugView (http://technet.microsoft.com/en-us/s.../bb896647.aspx) to see it.