team chat help [+rep]
#8

Since I was receiving that CMD is undefined symbol I used cmdtext so I've cut some of the errors, but still getting some about the TMP and the other stuff.

Quote:

C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(442) : error 017: undefined symbol "tmp"
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(444) : error 035: argument type mismatch (argument 2)
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : error 012: invalid function call, not a valid address
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : warning 215: expression has no effect
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : error 001: expected token: ";", but found ")"
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : error 029: invalid expression, assumed zero
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : fatal error 107: too many error messages on one line

So errors on these:
Код:
if(!strlen(tmp)) //<- 442
SendClientMessage(playerid, cmdtext, " /teamchat [text]"); //<-444
format(str, sizeof(str), "Teamchat %s: %s", PlayerName(playerid), cmdtext[3]); //<-450
BUMP: I've added new
Код:
tmp[128];
and got rid of the 442 error


Edit: Since you don't know about the STR maybe this should help you.
Код:
format(string,sizeof string,"PM Send to %s: %s",gName,inputtext)
;
This is how we format in the str.
Reply


Messages In This Thread
team chat help [+rep] - by Twinki1993 - 11.01.2012, 23:17
Re: team chat help [+rep] - by Twinki1993 - 11.01.2012, 23:23
Re: team chat help [+rep] - by Richie - 11.01.2012, 23:25
Re: team chat help [+rep] - by Twinki1993 - 11.01.2012, 23:27
Re: team chat help [+rep] - by Richie - 11.01.2012, 23:31
Re: team chat help [+rep] - by Twinki1993 - 11.01.2012, 23:33
Re: team chat help [+rep] - by Richie - 11.01.2012, 23:39
Re: team chat help [+rep] - by Twinki1993 - 11.01.2012, 23:45
Re: team chat help [+rep] - by Richie - 11.01.2012, 23:53
Re: team chat help [+rep] [String bug] - by Twinki1993 - 11.01.2012, 23:53

Forum Jump:


Users browsing this thread: 1 Guest(s)