Error in include -
Almog - 26.02.2011
Hello everyone I did include my commands and I do not understand what this error is the
Please Help
E:\Pawn\P67555\Almog\bew\pawno\include\commands.in c(1) : error 010: invalid function or declaration
Re: Error in include -
Stigg - 26.02.2011
Can we see the piece of code causing the error ?
Can't really help you without seeing that.
Re: Error in include -
Mean - 26.02.2011
1. Your error is on the first line, meaning you screwed something at the beginning of the script lol.
2. Post your code, we aren't telepats/supermans/spidermans/batmans.
Re: Error in include -
Almog - 26.02.2011
OK i have new Error i show you all
E:\Pawn\P67555\ъйчйд згщд\ъйчйд згщд\ъйчйд згщд\123 \pawno\include\commands.inc(1) : error 010: invalid function or declaration
E:\Pawn\P67555\ъйчйд згщд\ъйчйд згщд\ъйчйд згщд\123 \gamemodes\MLSCRIPT.pwn(4669) : error 002: only a single statement (or expression) can follow each "case"
E:\Pawn\P67555\ъйчйд згщд\ъйчйд згщд\ъйчйд згщд\123 \gamemodes\MLSCRIPT.pwn(4669 -- 4670) : error 029: invalid expression, assumed zero
E:\Pawn\P67555\ъйчйд згщд\ъйчйд згщд\ъйчйд згщд\123 \gamemodes\MLSCRIPT.pwn(4715) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
ok the include
I added this command
CMD:Wep(playerid, params[])
{
#pragma unused params
if(lmec[playerid] == false)
{
ShowPlayerDialog(playerid, 009, DIALOG_STYLE_LIST, "Light Sabres", "Green\nYellow\nBlue\nRed\nWhite\nPink", "Vybraќ", "Zrušiќ");
}
else
{
RemovePlayerAttachedObject(playerid,0);
lmec[playerid] = false;
}
return 1;
}
Line where the problem is written
#define USERPW "joramborichard71"
new the dialog
the 1 error
if(dialogid == 009)
the 2 error
if(dialogid == 009)
{
the 3 error
return 0;
all the dialog
if(dialogid == 009)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
SetPlayerAttachedObject(playerid, 0, 18649, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
lmec[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 1:
{
SetPlayerAttachedObject(playerid, 0, 18650, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
lmec[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 2:
{
SetPlayerAttachedObject(playerid, 0, 18648, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
lmec[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 3:
{
SetPlayerAttachedObject(playerid, 0, 18647, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
lmec[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 4:
{
SetPlayerAttachedObject(playerid, 0, 18652, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
lmec[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 5:
{
SetPlayerAttachedObject(playerid, 0, 18651, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
lmec[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
}
}
return 1;
}
return 0;
}
Re: Error in include -
Almog - 26.02.2011
now you can help me pliz
Re: Error in include -
Michael@Belgium - 26.02.2011
This wil be better :
if you add a code plz do [ pawn] and [ /pawn] (without the spaces) xp
Quote:
pawn Код:
//3 Errors.
//ok the include //I added this command CMD:Wep(playerid, params[]) { #pragma unused params if(lmec[playerid] == false) { ShowPlayerDialog(playerid, 009, DIALOG_STYLE_LIST, "Light Sabres", "Green\nYellow\nBlue\nRed\nWhite\nPink", "Vybraќ", "Zruљiќ"); } else { RemovePlayerAttachedObject(playerid,0); lmec[playerid] = false; } return 1; }
//Line where the problem is written--------------------------------vv #define USERPW "joramborichard71"
new the dialog the 1 error if(dialogid == 009)
the 2 error if(dialogid == 009) { the 3 error return 0;
all the dialog if(dialogid == 009) { if(response == 1) { switch(listitem) { case 0: { SetPlayerAttachedObject(playerid, 0, 18649, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3); lmec[playerid] = true; GivePlayerWeapon(playerid, 8, 1); } case 1: { SetPlayerAttachedObject(playerid, 0, 18650, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3); lmec[playerid] = true; GivePlayerWeapon(playerid, 8, 1); } case 2: { SetPlayerAttachedObject(playerid, 0, 18648, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3); lmec[playerid] = true; GivePlayerWeapon(playerid, 8, 1); } case 3: { SetPlayerAttachedObject(playerid, 0, 18647, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3); lmec[playerid] = true; GivePlayerWeapon(playerid, 8, 1); } case 4: { SetPlayerAttachedObject(playerid, 0, 18652, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3); lmec[playerid] = true; GivePlayerWeapon(playerid, 8, 1); } case 5: { SetPlayerAttachedObject(playerid, 0, 18651, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3); lmec[playerid] = true; GivePlayerWeapon(playerid, 8, 1); } } } return 1; } return 0; }
|
Mabey it's the name

idk xD
Re: Error in include -
Mean - 26.02.2011
Not really, put your code in [ pawn ] [ /pawn ] because it's hard to read. And make sure you re-paste it so it'll be indented.