Some hard errors
#1

Hey guys, I got some verry bad errors.

C:\Users\MarkAndLaite\Desktop\LT\lt.pwn(7 : error 010: invalid function or declaration
C:\Users\MarkAndLaite\Desktop\LT\lt.pwn(15 : error 001: expected token: ";", but found "-identifier-"
C:\Users\MarkAndLaite\Desktop\LT\lt.pwn(155) : warning 203: symbol is never used: "params"

Line 78 (and few more lines) - the line 78 is marked

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        dcmd(help, 4, cmdtext);
		return 1;
	}
	return 0;
}
Line 158 (and few more lines) - the line 158 is marked

Код:
dcmd_help(playerid, params[])
{
    new string[512]
	strcat(string, "Mode informations\n");
Line 155 (and few more lines) - the line 155 is marked

Код:
	}
	}
	}
	return 1;
}
dcmd_help(playerid, params[])
Thx for help
Reply
#2

For fixing the 1st error:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        dcmd(help, 4, cmdtext);
    return 0;
}

For fixing the 2nd error and the warning:
pawn Код:
dcmd_help(playerid, params[])
{
    #pragma unused params
    new string[512];
    strcat(string, "Mode informations\n");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)