Script errors. - 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: Script errors. (
/showthread.php?tid=402365)
Script errors. -
Kittylol - 26.12.2012
How to fix these errors:
pawn Код:
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
warning 215: expression has no effect
here is the code.
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "[-----Weapon Spawner-----]", "Knife\nBat\nChainsaw\nPistol\nDeagle\nShotgun\nMicroUzi\nMinigun\nRocketLauncher\nThermal******s", "Take", "Close");
Re: Script errors. -
Ryox175 - 26.12.2012
all those lines please.
Re: Script errors. -
Kittylol - 26.12.2012
This is in one line.
Re: Script errors. -
rbush12 - 26.12.2012
https://sampwiki.blast.hk/wiki/Errors_List
This may help a bit.
What is the line after that one.
Re: Script errors. -
Kittylol - 26.12.2012
I can't find where is the problem in error line.Where i need to fix it.
Re: Script errors. -
rbush12 - 26.12.2012
Post the line after
Re: Script errors. -
Kittylol - 26.12.2012
pawn Код:
public OnRconCommand(cmd[])
{
if(!strcmp(cmd,"/weapon",true))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "[-----Weapon Spawner-----]", "Knife\nBat\nChainsaw\nPistol\nDeagle\nShotgun\nMicroUzi\nMinigun\nRocketLauncher\nThermal******s", "Take", "Close");
return 1;
}
return 0;
}
Here is all code
Re: Script errors. -
rbush12 - 26.12.2012
Try removing the ; from the ShowPlayerDialog
Re: Script errors. -
Kittylol - 26.12.2012
Doesn't work.
Re: Script errors. -
rbush12 - 26.12.2012
What does it say