error 010: invalid function or declaration
#1

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

why is it under

pawn Код:
CMD:commands
?
Reply
#3

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

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;
}
Reply
#5

Works may I ask what did you change?
Reply
#6

pawn Код:
CMD:commands
to

pawn Код:
CMD:commands(playerid)
Reply
#7

AHH SILLY ME
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)