SA-MP Forums Archive
error 010: invalid function or declaration - 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)
+--- Thread: error 010: invalid function or declaration (/showthread.php?tid=454038)



error 010: invalid function or declaration - RandomDude - 27.07.2013

pawn Код:
CMD:commands
{
    TextDrawShowForPlayer(playerid,TextDraw1);
    TextDrawShowForPlayer(playerid,TextDraw2);
    TextDrawShowForPlayer(playerid,TextDraw3);
    TextDrawShowForPlayer(playerid,TextDraw4);
    TextDrawShowForPlayer(playerid,TextDraw5);
    TextDrawShowForPlayer(playerid,TextDraw6);
    TextDrawShowForPlayer(playerid,TextDraw7);
    TextDrawShowForPlayer(playerid,TextDraw8);
    TextDrawShowForPlayer(playerid,usebox);
    return 1;
}
{ = Line 1639
return 1 = Line 1649
} = Line 1650


Код:
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(1639) : error 010: invalid function or declaration
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(1649) : error 010: invalid function or declaration



Re: error 010: invalid function or declaration - Donvalley - 27.07.2013

why is it under

pawn Код:
CMD:commands
?


Re: error 010: invalid function or declaration - RandomDude - 27.07.2013

Because When I type Commands I want it to show the textdraws...


Re: error 010: invalid function or declaration - Donvalley - 27.07.2013

try that (not tested)

pawn Код:
CMD:commands(playerid)
{
    TextDrawShowForPlayer(playerid,TextDraw1);
    TextDrawShowForPlayer(playerid,TextDraw2);
    TextDrawShowForPlayer(playerid,TextDraw3);
    TextDrawShowForPlayer(playerid,TextDraw4);
    TextDrawShowForPlayer(playerid,TextDraw5);
    TextDrawShowForPlayer(playerid,TextDraw6);
    TextDrawShowForPlayer(playerid,TextDraw7);
    TextDrawShowForPlayer(playerid,TextDraw8);
    TextDrawShowForPlayer(playerid,usebox);
    return 1;
}



Re: error 010: invalid function or declaration - RandomDude - 27.07.2013

Works may I ask what did you change?


Re: error 010: invalid function or declaration - Donvalley - 27.07.2013

pawn Код:
CMD:commands
to

pawn Код:
CMD:commands(playerid)



Re: error 010: invalid function or declaration - RandomDude - 27.07.2013

AHH SILLY ME


Re: error 010: invalid function or declaration - Donvalley - 27.07.2013

easy mistake to make especially if your like me and its 12:19am :P