How should i??? -
jot16 - 03.08.2011
plz fix this.thx
error:
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(394) : error 055: start of function body without function header
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(395) : error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(397) : error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(399) : error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(406) : error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(413) : error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(420) : error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(42
: error 010: invalid function or declaration
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(430) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
9 Errors.
Re: How should i??? -
Basicz - 03.08.2011
Your AddStaticVehicle arguments are wrong.
Notice this :
You put a random number just before the Float:Angle argument, that's giving errors for me.
Another problem located at : if(dialogid == SPAWN && response)
You should put it in OnPlayerDialogResponse.
Please post your code in [ pawn ] and [ /pawn ] ( Without spaces obviously ), not in [ quote ] and [ /quote ].
It's badly indented if you use [ quote ].
Re: How should i??? -
Famalamalam - 03.08.2011
Which is line 394?
Re: How should i??? -
jot16 - 03.08.2011
Quote:
Originally Posted by Basicz
Your AddStaticVehicle arguments are wrong.
Notice this :
You put a random number just before the Float:Angle argument, that's giving errors for me.
Another problem located at : if(dialogid == SPAWN && response)
You should put it in OnPlayerDialogResponse.
Please post your code in [ pawn ] and [ /pawn ] ( Without spaces obviously ), not in [ quote ] and [ /quote ].
It's badly indented if you use [ quote ].
|
it was my bad.
code:
http://pastebin.com/pLn2WE2F
edit:I fixed line 394 in gamemode and it's fine now.
Re: How should i??? -
Shockey HD - 03.08.2011
Here you go, Fixed.
http://pastebin.com/8YZiaE3e
Re: How should i??? -
jot16 - 03.08.2011
mistake was?
Re: How should i??? -
Shockey HD - 03.08.2011
Quote:
Originally Posted by jot16
mistake was?
|
You did OnDialogResponse Wrong.
Your:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
{
It was suppose to be
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == SKINMENU && response)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
GivePlayerWeapon(playerid, 3, 1000);
SetPlayerColor(playerid,0x24FF0AB9);
SetPlayerSkin(playerid, 105);
}
case 1:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
GivePlayerWeapon(playerid, 23, 1000);
SetPlayerColor(playerid,0xC2A2DAAA);
SetPlayerSkin(playerid, 102);
}
case 2:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
GivePlayerWeapon(playerid,23, 1000);
SetPlayerColor(playerid, 0xFF9900AA);
SetPlayerSkin(playerid, 114);
}
case 3:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
GivePlayerWeapon(playerid, 23, 1000);
SetPlayerColor(playerid, 0xFF66FFAA);
SetPlayerSkin(playerid, 117);
}
}
return 1;
}
return 0;
}
Also under a case you had two {