29.12.2009, 19:23
Hey i want to make a chat only works for players that are in a heli/plane. Heres my code so far:
When i compile i get this error on the
line.
Please also help me to only make it work for people in plane/heli.
Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '&' { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"Pilot Chat: %s: %s",string,text[1]); SendClientMessageToAll(green,string); return 1; } return 1; }
Код:
if(text[0] == '&' {
Код:
C:\Documents and Settings\Administratцr\Skrivbord\Server\gamemodes\nwa.pwn(593) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.