Posts: 3,004
Threads: 12
Joined: May 2011
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;
}
Posts: 1,250
Threads: 92
Joined: Mar 2011
Reputation:
0
1) Run Pawno as administrator.
2) Idk what you are trying to do.. try renaming the second string to string2 or something?
Posts: 3,004
Threads: 12
Joined: May 2011
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)
Posts: 3,004
Threads: 12
Joined: May 2011
Quote:
Originally Posted by iPLEOMAX
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...
Posts: 3,004
Threads: 12
Joined: May 2011
28.07.2011, 12:58
(
Last edited by Kaperstone; 28/07/2011 at 07:53 PM.
)
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
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by xkirill
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.
Posts: 3,004
Threads: 12
Joined: May 2011
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??
Posts: 193
Threads: 27
Joined: May 2011
Reputation:
0
what is your user name in PC ?
Posts: 3,004
Threads: 12
Joined: May 2011
Quote:
Originally Posted by ylleron
what is your user name in PC ?
|
kirill... DUH! lol
why?