SA-MP Forums Archive
2 Problems - 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: 2 Problems (/showthread.php?tid=237305)



2 Problems - Roomeo - 09.03.2011

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);



Re: 2 Problems - Stigg - 09.03.2011

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);



Re: 2 Problems - HyperZ - 09.03.2011

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



Re: 2 Problems - Roomeo - 09.03.2011

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


Re: 2 Problems - Roomeo - 09.03.2011

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


Re: 2 Problems - HyperZ - 09.03.2011

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


Re: 2 Problems - Stigg - 09.03.2011

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