SA-MP Forums Archive
notepad++ - 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)
+--- Thread: notepad++ (/showthread.php?tid=453164)



notepad++ - MichaelWharton101 - 24.07.2013

I just started using notepad++ and testing it out with a VERY basic code and i get this...
Код:
Current directory: C:\Users\Michael\Desktop\ARP\gamemodes
.p(0) : fatal error 100: cannot read from file: ".p"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
================ READY ================
Code I am testing with.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp(cmdtext, "/goto") == 0) 
     {
         SetPlayerPos(playerid, -1967.8365, 2956.9823, 12.9375);
         return 1;
     }
     return 0;
}



Re: notepad++ - Cunning - 24.07.2013

Try saving the file as .pwn instead of .p


Re: notepad++ - MichaelWharton101 - 24.07.2013

It is saved as .pwn


Re: notepad++ - MichaelWharton101 - 24.07.2013

any other ideas?


Re: notepad++ - nor15 - 24.07.2013

You have a #include <.p> ?


Re: notepad++ - MichaelWharton101 - 24.07.2013

nope


Re: notepad++ - MP2 - 24.07.2013

You've included some sort of .p file. It could be..

#include something.p
#include "something.p"
or #include <something.p>

(most likely the latter two, as the first is wrong).


Re: notepad++ - Kirollos - 24.07.2013

press F6 and post here what does it contain.


Re: notepad++ - MichaelWharton101 - 24.07.2013

I don't think so, I am using the sa-mp server I downloaded. all that is in it I added is the little command.


Re: notepad++ - MichaelWharton101 - 24.07.2013

Quote:
Originally Posted by kirollos
Посмотреть сообщение
press F6 and post here what does it contain.
Код:
npp_save
cd $(CURRENT_DIRECTORY)
"C:\Users\Michael\Desktop\ARP\pawno\pawncc.exe" "$(arp)" -; -(
That is what i get when I hit F6


Re: notepad++ - Kirollos - 24.07.2013

Try the last line like that:

Код:
"C:\Users\Michael\Desktop\ARP\pawno\pawncc.exe" "$(FILE_NAME)"



Re: notepad++ - MichaelWharton101 - 24.07.2013

Quote:
Originally Posted by kirollos
Посмотреть сообщение
Try the last line like that:

Код:
"C:\Users\Michael\Desktop\ARP\pawno\pawncc.exe" "$(FILE_NAME)"
That worked, thanks bro