Script errors.
#1

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");
Reply
#2

all those lines please.
Reply
#3

This is in one line.
Reply
#4

https://sampwiki.blast.hk/wiki/Errors_List

This may help a bit.

What is the line after that one.
Reply
#5

I can't find where is the problem in error line.Where i need to fix it.
Reply
#6

Post the line after
Reply
#7

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
Reply
#8

Try removing the ; from the ShowPlayerDialog
Reply
#9

Doesn't work.
Reply
#10

What does it say
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)