Unknown Command ??!
#10

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
Another thing for these
PHP код:
D:\MyServer\Server\filterscripts\createobject.pwn(33) : error 001expected token";"but found "{"
D:\MyServer\Server\filterscripts\createobject.pwn(35) : error 010invalid function or declaration 
PHP код:
stock info
{
    
format(string,sizeof(string),PATH,"Object %i",object);
    return 
string;

pawn Код:
info(object)
{
    new string[20];
    format(string,sizeof(string),PATH"Object %i",object);
    return string;
}
usage-example:
printf("info: %s",info(3));
prints: "info: path/Object 3"
if PATH is defined as "path/"

adjust the size of "string"
idk what PATH holds for you or how long it is.
Reply


Messages In This Thread
Unknown Command ??! - by nezo2001 - 09.01.2015, 16:07
Re: Unknown Command ??! - by CutX - 09.01.2015, 16:14
Re: Unknown Command ??! - by nezo2001 - 09.01.2015, 16:19
Re: Unknown Command ??! - by CutX - 09.01.2015, 16:21
Re: Unknown Command ??! - by nezo2001 - 09.01.2015, 16:31
Re: Unknown Command ??! - by CutX - 09.01.2015, 16:38
Re: Unknown Command ??! - by nezo2001 - 09.01.2015, 16:39
Re: Unknown Command ??! - by CutX - 09.01.2015, 16:54
Re: Unknown Command ??! - by nezo2001 - 09.01.2015, 16:54
Re: Unknown Command ??! - by CutX - 09.01.2015, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)