Admin filterscript warning and errors
#1

As now I tried to make aSystem with zcmd, now i get those errors:
PHP код:
C:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(141) : warning 217loose indentation
C
:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(143) : error 001expected token")"but found "return"
C:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(143) : error 037invalid string (possibly non-terminated string)
C:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(143) : error 029invalid expressionassumed zero
C
:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(143) : fatal error 107too many error messages on one line 
Line 141 and 143:
pawn Код:
Line 141:   if(IsPlayerAdmin(playerid))

Line 143:       if(sscanf(params,"ud",id,level) return SendClientMessage(playerid, 0xFFFFFF, "{00CED1}KTW: {FFFFFF}Usage: /promote name/id level);
Reply
#2

try this

Quote:

if(IsPlayerAdmin(playerid))
{
if(sscanf(params,"ud",id,level) return SendClientMessage(playerid, 0xFFFFFF, "{00CED1}KTW: {FFFFFF}Usage: /promote name/id level);


Use this at end of command "}"
Reply
#3

You are missing one parenthesis

Quote:

if(sscanf(params,"ud",id,level) return SendClientMessage(playerid, 0xFFFFFF, "{00CED1}KTW: {FFFFFF}Usage: /promote name/id level);

Use this:
pawn Код:
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid, 0xFFFFFF, "{00CED1}KTW: {FFFFFF}Usage: /promote name/id level);

It should work.
Reply
#4

both didint work good, still gives me errors:
pawn Код:
C:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(143) : error 037: invalid string (possibly non-terminated string)
C:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(143) : error 029: invalid expression, assumed zero
C:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(143) : error 029: invalid expression, assumed zero
C:\Users\kuldar\Documents\samp\filterscripts\kAdmin.pwn(143) : fatal error 107: too many error messages on one line
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)