PDA

View Full Version : little error on showplayergangzoneforall


faff
20/05/2012, 04:07 PM
hello,
ill got a little error.
this is the code:

GangZoneShowForAll(zoneg,TEAM_GRI);
GangZoneShowForAll(zonez,TEAM_ZWI);
GangZoneShowForAll(zonem,TEAM_MAL); //line 523

here there error

C:\Users\Fabio\Downloads\Team Deatmatch\gamemodes\TDM.pwn(523) : error 029: invalid expression, assumed zero
C:\Users\Fabio\Downloads\Team Deatmatch\gamemodes\TDM.pwn(523) : error 029: invalid expression, assumed zero
C:\Users\Fabio\Downloads\Team Deatmatch\gamemodes\TDM.pwn(523) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


Pleasehelp!

Cypress
20/05/2012, 04:19 PM
There's something else that gives you those errors. Comment the line 523 and see if you still get errors.


GangZoneShowForAll(zoneg,TEAM_GRI);
GangZoneShowForAll(zonez,TEAM_ZWI);
//GangZoneShowForAll(zonem,TEAM_MAL);

MP2
20/05/2012, 04:34 PM
Show the TEAM_x defines. They should be colours.

faff
20/05/2012, 04:43 PM
fixed xD

but uhm...
Ill got new problem this is for register:
INI_WriteInt(File,"Password", inputtext);

he give this error: error 035: argument type mismatch (argument 3)

read above

Vince
20/05/2012, 04:53 PM
WriteInt obviously means "Write Integer". Inputtext is a string.