How should i???
#1

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.
Reply
#2

Your AddStaticVehicle arguments are wrong.

Notice this :

pawn Код:
2 70.7350
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 ].
Reply
#3

Which is line 394?
Reply
#4

Quote:
Originally Posted by Basicz
Посмотреть сообщение
Your AddStaticVehicle arguments are wrong.

Notice this :

pawn Код:
2 70.7350
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.
Reply
#5

Here you go, Fixed.

http://pastebin.com/8YZiaE3e
Reply
#6

mistake was?
Reply
#7

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 {
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)