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.


I can compile now and i can use pilot chat ingame. But the problem is that all can use it even if they are not in a heli/plane. Does anyone know how to only get it working for those who are in heli/plane, Please 
, your homie ~Bajskorv