Help with textdraws
#1

PHP код:
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : error 017undefined symbol "gTeam"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : warning 215expression has no effect
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : error 001expected token";"but found "]"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : error 029invalid expressionassumed zero
C
:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

pawn Код:
if(gTeam[playerid] == TEAM_POLICE)
Reply
#2

Replace it with
pawn Код:
if(GetPlayerTeam(playerid) == TEAM_POLICE)
Another way = add this at the top and use gTeam[playerid]= TEAM_POLICE; to set their team to police.
pawn Код:
new gTeam[MAX_PLAYERS];
Reply
#3

You forgot to add this at the top of your script.
pawn Код:
static gTeam[MAX_PLAYERS];
Reply
#4

oh and
PHP код:
TeamText[playerid] = TextDrawCreate("498.0000.100.0000"); 
Код:
error 035: argument type mismatch (argument 1)
Reply
#5

oh and if u fix please tell me how so in future ima fix it

Sry for bumping
Reply
#6

Doesn't it need to be something like this?

TextDrawCreate(Float: x, Float:y, text[]) or do you use a string?

Btw that error means that your function is made with the wrong "type". So, i don't know what you want to write there, but try removing that " .
Reply
#7

I need the textdraw to be under the money bar .
Reply
#8

Then set it's location there.
Reply
#9

What do you mean?
Reply
#10

https://sampwiki.blast.hk/wiki/Image:Textdraw_map.png

Look at this picture, it may help you with finding the correct position for your textdraw. Also you can use a TextDraw editor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)