#1

Hello, I am getting this ERROR:
pawn Код:
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24246) : error 001: expected token: "-string end-", but found "-identifier-"
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24246) : error 017: undefined symbol "iRolex"
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24246) : warning 215: expression has no effect
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24246) : warning 215: expression has no effect
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24246) : warning 215: expression has no effect
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24246) : error 001: expected token: ";", but found ")"
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24246) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


And here is my CMD.
pawn Код:
COMMAND:credits(playerid, params[])
{
 ShowPlayerDialog(playerid, 1243, DIALOG_STYLE_MSGBOX, "Server Credits:", ""COL_WHITE"Server Owner: "iRolex"\nServer Scripter & Forum Manager: iRolex", "CLOSE", "");
    return 1;
}
The Line 24246 is this one --> [ ShowPlayerDialog(playerid, 1243, DIALOG_STYLE_MSGBOX, "Server Credits:", ""COL_WHITE"Server Owner: "iRolex"\nServer Scripter & Forum Manager: iRolex", "CLOSE", ""); ]
Reply
#2

Hmm, replace your ShowPlayerDialog with this one -

pawn Код:
COMMAND:credits(playerid, params[])
{
    ShowPlayerDialog(playerid, 1243, DIALOG_STYLE_MSGBOX, "Server Credits:", "{FFFFFF}Server Owner: iRolex \nServer Scripter & Forum Manager: iRolex", "CLOSE", "");
    return 1;
}
You had many ("s) inside your ShowPlayerDialog's info[] parameter, which messed up your code and gave you the errors. Thus I replaced the "COL_WHITE"(with the "s) with {FFFFFF} (which is the Hex Color code for white) and the word "Rolex" with Rolex.
Reply
#3

pawn Код:
COMMAND:credits(playerid, params[])
{
 ShowPlayerDialog(playerid, 1243, DIALOG_STYLE_MSGBOX, "Server Credits:", ""COL_WHITE"Server Owner: \"iRolex\"\nServer Scripter & Forum Manager: iRolex", "CLOSE", "");
    return 1;
}
If you're trying to add a colan with "iRolax" then use the code above.
Reply
#4

I tried both of those Codes/CMds but then I get this ERROR
pawn Код:
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24481) : error 003: declaration of a local variable must appear in a compound block
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24482) : error 017: undefined symbol "string"
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24482) : warning 215: expression has no effect
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24482) : error 001: expected token: ";", but found "]"
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24482) : error 029: invalid expression, assumed zero
F:\UP COMPUTER\HARSHPREET SINGH NIJHAR\SA-MP (SERVER)\COD\gamemodes\COD-BlackShadow.pwn(24482) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Here are my Lines:
http://prntscr.com/3qpbno
(24481 and 24482).
What now ?
Reply
#5

Try this.
pawn Код:
if(pInfo[playerid][pAdmin]<2)
{
    // write your code here.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)