SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (/showthread.php?tid=518044)



Help - xHarshx - 08.06.2014

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", ""); ]


Re: Help - Adityz - 08.06.2014

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.


Re: Help - Zex Tan - 08.06.2014

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.


Re: Help - xHarshx - 08.06.2014

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 ?


Re: Help - Laure - 08.06.2014

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