2 Problems
#1

Hello Guys
I want To Make a Text For Player when playr join he see a big TextDraw in Screen

i tried this
pawn Код:
{
   txt1 = TextDrawCreate(10.0, 415.0,"~r~RomDM");
    TextDrawBoxColor(txt1,0x222222BB);
    TextDrawLetterSize(txt1,0.3,1.0);
    TextDrawTextSize(txt1,400.0,40.0);
    TextDrawFont(txt1, 2);
    TextDrawShowForPlayer(playerid,txt1);
    return 1;
}
it's giving this
pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(31) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(319) : error 017: undefined symbol "txt1"
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(320) : error 017: undefined symbol "txt1"
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(321) : error 017: undefined symbol "txt1"
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(322) : error 017: undefined symbol "txt1"
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(323) : error 017: undefined symbol "txt1"
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(324) : error 017: undefined symbol "txt1"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
pawn Код:
31)ammunationmenu = CreateMenu("AmmuNation :", 2, 200.0, 100.0, 150.0, 150.0);
Reply
#2

Try:

pawn Код:
new Text:txt1 = TextDrawCreate(10.0, 415.0,"~r~RomDM");
pawn Код:
new Menu:ammunationmenu = CreateMenu("AmmuNation :", 2, 200.0, 100.0, 150.0, 150.0);
Reply
#3

Put this under include's:
pawn Код:
new Text:txt1;
Reply
#4

lol when i added this on the top it says Pawn Copiler has stoped working when i removed it the errors again
Reply
#5

Quote:
Originally Posted by Clive
Посмотреть сообщение
Put this under include's:
pawn Код:
new Text:txt1;
Done with this one Thanks
Reply
#6

Quote:
Originally Posted by Roomeo
Посмотреть сообщение
Done with this one Thanks
No Problem, And Please next time don't double post.
Reply
#7

Quote:
Originally Posted by Roomeo
Посмотреть сообщение
lol when i added this on the top it says Pawn Copiler has stoped working when i removed it the errors again
I did'nt mean copy and paste them line's, i was bringing your attention to the 'new' parts. No wonder it crashed your compiler. lolz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)