Getting few errors on my GM[++rep++]
#1

Hello SA-MP community.
I made a gamemode for my old server planing to reopen it. ( Not the rp one. ) And I am having a problem.
Textdraws give me errors. Now posting the code here is useless so I need a quick help via team viewer it will take a sec or two.

What you might/will get;
I might pay you via paypal when I will get my money from onebip ( in 60 days ;/ )
I will rep you.


anyway, have a nice day! if you're interested post below.

**NOTE THIS IS NOT A SCRIPTING JOB JUST A QUICK HELP THAT I NEED**
Reply
#2

Well,here we help people on scripting,and not via Team Viewer.
Post lines and errors here and we will help you.
Reply
#3

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
Well,here we help people on scripting,and not via Team Viewer.
Post lines and errors here and we will help you.
As I said its useless to post the code here, because it wont help.

Код:
		Textdraw0[playerid] = TextDrawCreate(531.000000, 331.000000, "__");
        TextDrawBackgroundColor(Textdraw0[playerid], 16777215);
        TextDrawFont(Textdraw0[playerid], 1);
        TextDrawLetterSize(Textdraw0[playerid], 0.300000, 10.000000);
        TextDrawColor(Textdraw0[playerid], 65535);
        TextDrawSetOutline(Textdraw0[playerid], 0);
        TextDrawSetProportional(Textdraw0[playerid], 1);
        TextDrawSetShadow(Textdraw0[playerid], 3);
        TextDrawUseBox(Textdraw0[playerid], 1);
        TextDrawBoxColor(Textdraw0[playerid], 85);
        TextDrawTextSize(Textdraw0[playerid], 630.000000, 0.000000);
Reply
#4

i can help you via team viewer but im not at home right now
Reply
#5

Quote:
Originally Posted by Mark_Weston
Посмотреть сообщение
As I said its useless to post the code here, because it wont help.

Код:
		Textdraw0[playerid] = TextDrawCreate(531.000000, 331.000000, "__");
        TextDrawBackgroundColor(Textdraw0[playerid], 16777215);
        TextDrawFont(Textdraw0[playerid], 1);
        TextDrawLetterSize(Textdraw0[playerid], 0.300000, 10.000000);
        TextDrawColor(Textdraw0[playerid], 65535);
        TextDrawSetOutline(Textdraw0[playerid], 0);
        TextDrawSetProportional(Textdraw0[playerid], 1);
        TextDrawSetShadow(Textdraw0[playerid], 3);
        TextDrawUseBox(Textdraw0[playerid], 1);
        TextDrawBoxColor(Textdraw0[playerid], 85);
        TextDrawTextSize(Textdraw0[playerid], 630.000000, 0.000000);
Post the errors here.
Reply
#6

E:\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\pawno\include\foreach.inc(782) : warning 219: local variable "count" shadows a variable at a preceding level
E:\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\pawno\include\foreach.inc(824) : warning 219: local variable "count" shadows a variable at a preceding level
E:\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\pawno\include\foreach.inc(866) : warning 219: local variable "count" shadows a variable at a preceding level
E:\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\pawno\include\foreach.inc(919) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(433) : error 010: invalid function or declaration
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1152) : error 017: undefined symbol "Textdraw0"
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1152) : warning 215: expression has no effect
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1152) : error 001: expected token: ";", but found "]"
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1152) : error 029: invalid expression, assumed zero
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1152) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Line 433: Text:Textdraw0[MAX_PLAYERS] = {INVALID_TEXT_DRAW, ..},

Line 1152: Textdraw0[playerid] = TextDrawCreate(531.000000, 331.000000, "__");
Reply
#7

This is not from there
Quote:

warning 219: local variable "count" shadows a

You need to look up and see if count is created the same as you wann`t to use it there,if not change name from count to count1...

For this
Quote:

undefined symbol "Textdraw0"

Код:
new Text:Textdraw0;
And give me line 432
Reply
#8

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
This is not from there

You need to look up and see if count is created the same as you wann`t to use it there,if not change name from count to count1...

For this

Код:
new Text:Textdraw0;
And give me line 432
433*


Quote:
Originally Posted by Mark_Weston
Посмотреть сообщение

5 Errors.

Line 433: Text:Textdraw0[MAX_PLAYERS] = {INVALID_TEXT_DRAW, ..},

Line 1152: Textdraw0[playerid] = TextDrawCreate(531.000000, 331.000000, "__");
Reply
#9

Код:
new Text:Textdraw0[MAX_PLAYERS];
Reply
#10

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
Код:
new Text:Textdraw0[MAX_PLAYERS];
I have tried that before posting this topic.
I have 9 text draws and added new before all Text:Textdraw0-9

errors.

E:\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\pawno\include\foreach.inc(782) : warning 219: local variable "count" shadows a variable at a preceding level
E:\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\pawno\include\foreach.inc(824) : warning 219: local variable "count" shadows a variable at a preceding level
E:\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\pawno\include\foreach.inc(866) : warning 219: local variable "count" shadows a variable at a preceding level
E:\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\pawno\include\foreach.inc(919) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(433) : warning 213: tag mismatch
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(433) : error 029: invalid expression, assumed zero
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(434) : error 020: invalid symbol name ""
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(435) : warning 213: tag mismatch
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(435) : error 029: invalid expression, assumed zero
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(436) : error 020: invalid symbol name ""
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(437) : warning 213: tag mismatch
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(437) : error 029: invalid expression, assumed zero
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(43 : error 020: invalid symbol name ""
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(439) : warning 213: tag mismatch
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(439) : error 029: invalid expression, assumed zero
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(440) : error 020: invalid symbol name ""
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(441) : warning 213: tag mismatch
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(441) : error 029: invalid expression, assumed zero
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(442) : error 020: invalid symbol name ""
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1164) : error 017: undefined symbol "Textdraw1"
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1164) : warning 215: expression has no effect
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1164) : error 001: expected token: ";", but found "]"
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1164) : error 029: invalid expression, assumed zero
C:\Users\AlexMain\Desktop\Servers\[SFP]Server For Pilots\gamemodes\sfp2012.pwn(1164) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


14 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)