little problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: little problem (
/showthread.php?tid=170504)
little problem -
pantelimonfl - 23.08.2010
I've put a code in my gm and it is an error that i don't know how to fix
Re: little problem -
Hiddos - 23.08.2010
You're already closing the callback before those other lines.
Re: little problem -
iggy1 - 23.08.2010
can you show the errors plz that screenshot no good. Hiddos must have good eyes
Re: little problem -
pantelimonfl - 23.08.2010
Error
Код:
D:\GAMES\gamemode\test\gamemodes\gfLcS.pwn(4591) : error 010: invalid function or declaration
Line
Код:
else if(CP[playerid] == 111)//TCC
Re: little problem -
iggy1 - 23.08.2010
well its not inside a callback or function or even an 'if'
Re: little problem -
pantelimonfl - 23.08.2010
Sorry, but i don't understand what you mean..
Re: little problem -
iggy1 - 23.08.2010
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
Re: little problem -
pantelimonfl - 23.08.2010
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
Re: little problem -
iggy1 - 23.08.2010
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.
Re: little problem -
Zh3r0 - 23.08.2010
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!