little problem
#1

I've put a code in my gm and it is an error that i don't know how to fix
Reply
#2

You're already closing the callback before those other lines.
Reply
#3

can you show the errors plz that screenshot no good. Hiddos must have good eyes
Reply
#4

Error
Код:
D:\GAMES\gamemode\test\gamemodes\gfLcS.pwn(4591) : error 010: invalid function or declaration
Line
Код:
	else if(CP[playerid] == 111)//TCC
Reply
#5

well its not inside a callback or function or even an 'if'
Reply
#6

Sorry, but i don't understand what you mean..
Reply
#7

its more or less like you've done this (but i doubt with this callback)
incorrect
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}
else if(CP[playerid] == 111)//TCC
CORECT
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(CP[playerid] == 110)//TCC
    {
        //do something
    }
    else if(CP[playerid] == 111)//TCC
    {
        //do something else
    }
    return 1;
}
Obviously you dont want it in OnPlayerDisconnect but you should get the picture.

Check this wiki page on control structures https://sampwiki.blast.hk/wiki/Control_Structures
Learn about something before trying it is my advice.

BTW check your inbox
Reply
#8

Can you tell me what i need tot do to fix that error? Don't give me link on wiki or smth else. Just tell me what i need to do. Thanks
Reply
#9

Ok i tell you what u need to do post the full block of code that comes before the error and ill try fix.
Its no good if your just going to make the same mistake again though.
Reply
#10

Quote:
Originally Posted by pantelimonfl
Посмотреть сообщение
I've put a code in my gm and it is an error that i don't know how to fix
I see 4 k lines in just a bit of scrolling, scrolling more will reach about 20k.You can't fix such an error and you have such a big gamemode, strange.
You can't do shit, copy paster.

LIKE HIDDOS SAID!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)