Posts: 553
Threads: 95
Joined: Sep 2013
PHP код:
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : error 017: undefined symbol "gTeam"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : warning 215: expression has no effect
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : error 001: expected token: ";", but found "]"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : error 029: invalid expression, assumed zero
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(235) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
if(gTeam[playerid] == TEAM_POLICE)
Posts: 54
Threads: 3
Joined: Aug 2014
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.
Posts: 553
Threads: 95
Joined: Sep 2013
oh and
PHP код:
TeamText[playerid] = TextDrawCreate("498.0000.100.0000");
Код:
error 035: argument type mismatch (argument 1)
Posts: 553
Threads: 95
Joined: Sep 2013
oh and if u fix please tell me how so in future ima fix it
Sry for bumping
Posts: 356
Threads: 4
Joined: Sep 2014
Reputation:
0
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 " .
Posts: 553
Threads: 95
Joined: Sep 2013
I need the textdraw to be under the money bar .
Posts: 364
Threads: 41
Joined: Aug 2014
Reputation:
0
Then set it's location there.
Posts: 553
Threads: 95
Joined: Sep 2013