14.04.2011, 12:41
Hi all
I wrote a SaveIn script for myself, but when I want to use it, my pawn says "undefined symbol 'kick'".
the code:
the way I used it:
please help
note: when I use like this: "SaveIn("kicks",text);" then it says argument type mismatch.
another note: please correct, not rewrite the code :]
I wrote a SaveIn script for myself, but when I want to use it, my pawn says "undefined symbol 'kick'".
the code:
pawn Код:
stock SaveIn(logname,text) {
new
text1[128],
name[30],
File:file;
format(text1,sizeof(text1),"%s",text);
format(name,sizeof(name),"Logs/%s.txt",logname);
file = fopen(name,io_append);
fwrite(file,text1);
fclose(file);
}
pawn Код:
SaveIn(ban,text);
note: when I use like this: "SaveIn("kicks",text);" then it says argument type mismatch.
another note: please correct, not rewrite the code :]