2 Prolems
#1

Hi,
i got 2 problems then i dont know how to resolve them..
1) when i open my pawno it says :: Unable to write : C:/Blah/settings.ini

2) im making my first include and i got a problem:
i have 2 strings in 1 stock
here it is:
Code:
stock Blah(string[])
{
new string[128]
		format(string,sizeof(string),string,tname,playerid); // at the first string, is the : new string[128] | the second string is the message(from :: stock Blah(string[]) )
		SendClientMessageToAll(0xAA3333AA,string); // the same as sayed on the second string(here /\ /\ (up))
return 1;
}
Reply
#2

1) Run Pawno as administrator.

2) Idk what you are trying to do.. try renaming the second string to string2 or something?
Reply
#3

ahh...
i have 2 strings... 1 in stock and the second in " SendClientMessageToAll "
this can make a problem...

(in the first(1) i want then people will in-put there message to all)
Reply
#4

Quote:
Originally Posted by iPLEOMAX
View Post
1) Run Pawno as administrator.

2) Idk what you are trying to do.. try renaming the second string to string2 or something?
sorry for bumping and double posting...

but i still cant run PAWNO its shows me the same error >.<
it crash the whole pawno...
Reply
#5

Make sure the settings.ini file is in the same directory as pawno.exe. The settings.ini file you have may also be corrupted. Try replacing the contents (if it even exists) with the following:
Code:
[General]
FileAssoc=1
[Display]
WindowMax=1
WindowX=209
WindowY=91
WindowW=1014
WindowH=670
Splitter=212
Font_Name=Courier New
Font_Size=10
ShowFuncList=1
[RunOpts]
CopyDir=\
ExeFile=pawncc.exe
Params=-r
For your second, which string are you trying to format and send to the player? If it's the one you create within the function, then adding the parameter is useless, you can remove it. Also, in the stock you use the 'playerid' variable that isn't present. You may be trying to pass a player's ID to the function, and use it. If that is the case, you will need to add a parameter with the name of 'playerid'.
Reply
#6

nope... :S
it still shows me the same error...
i did what you sayed and it doesnt work...

PEOPLE PLEASE HELP ME >.<
when i open pawno from winrar it open it perfactly,when i compile my script it show me a erro like this:
Cannot create file:C:/Blah/FilterScript/MYFS.pwn ???.???,???,???

i tried to save it somwhere else and it show me the same error

i exrected it to a folder and i open the pawno and it show me:
unable to write to C:/blah/setting.ini.

i runned it as administator and it showed me the same error,
when i open SAM[P]CE
and compile a script it show me:
cannot read from file C:/Blah/MYFS.pwn

i dont know what to do..
please help :)

thanks for helpers
Reply
#7

Quote:
Originally Posted by xkirill
View Post
Hi,
i got 2 problems then i dont know how to resolve them..
1) when i open my pawno it says :: Unable to write : C:/Blah/settings.ini

2) im making my first include and i got a problem:
i have 2 strings in 1 stock
here it is:
Code:
stock Blah(string[])
{
new string[128]
		format(string,sizeof(string),string,tname,playerid); // at the first string, is the : new string[128] | the second string is the message(from :: stock Blah(string[]) )
		SendClientMessageToAll(0xAA3333AA,string); // the same as sayed on the second string(here /\ /\ (up))
return 1;
}
1) To address this problem, you should try disabling UAC. Alternatively, change the file settings for 'pawncc.exe' and 'pawno.exe' so that both executables run as an administrator.

2) To address this problem, you're going to need to format your string properly. You need to specify which format the strings you've specified will be used. An example of a fix for this would be as follows:

Code:
stock Blah(string[])
{
new string2[128]; // You need a semi-colon, and you can't use the same name as the function argument ('string')
		format(string2,sizeof(string2), "%s %s %d", string, tname, playerid); 
		SendClientMessageToAll(0xAA3333AA, string2); 
return 1;
}
This code I've provided should work for you, but you should note that I haven't had a chance to compile it to test it, so it may still not be working.
Reply
#8

ok
this how i maked my include ::
Code:
stock AntiSpam(playerid,color1,string1[],color2,string2[])
{
forward clearspam(playerid);

public OnPlayerText(playerid, text[];])
{
	SetPVarInt(playerid,"Spam",SpamX(playerid,"Spam")+1);
        SetTimerEx("clearspam",3000,false,"d",playerid);
if(GetPVarInt(playerid,"Spam") == 2) {
		new string[128];
		new nameX[MAX_PLAYER_NAME];
		GetPlayerName(playerid,nameX,sizeof(nameX));
		format(string,sizeof(string),string1,nameX,playerid);
		SendClientMessageToAll(color1,string);
                CallRemoteFunction("KickIncrease","d",playerid);
		//Kick(playerid);
	else if(GetPVarInt(playerid,"Spam") == 2) {
		SendClientMessage(playerid,color2,string2);
		return 0;
	}
  return 1;

}

public clearspam(playerid)
{
	SetPVarInt(playerid,"Spam",0);
}
is it good?do you think it will work?
and what :
Code:
CallRemoteFunction("KickIncrease","d",playerid);
does do?

and what UAC means??
Reply
#9

what is your user name in PC ?
Reply
#10

Quote:
Originally Posted by ylleron
View Post
what is your user name in PC ?
kirill... DUH! lol

why?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)