21.01.2010, 20:14
C:\Users\alex\Desktop\josegate.pwn(17) : error 017: undefined symbol "PlayerInfo"
C:\Users\alex\Desktop\josegate.pwn(17) : warning 215: expression has no effect
C:\Users\alex\Desktop\josegate.pwn(17) : error 001: expected token: ";", but found "]"
C:\Users\alex\Desktop\josegate.pwn(17) : error 029: invalid expression, assumed zero
C:\Users\alex\Desktop\josegate.pwn(17) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
#include <a_samp>
forward PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z);
new Jose;
public OnFilterScriptInit()
{
Jose = CreateObject(969, 999.17, -644.53, 119.68, 0.00, 0.00, 22.5);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/housegate", cmdtext, true, 10) == 0)
{
if(Eg: PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerToPoint(40, playerid, 999.17, -644.53, 119.6)
{
MoveObject(Jose, 990.08, -646.36, 120.46, 10);
Eg: SendClientMessage(playerid, 0xFFFFFF, "You've opened jose gate");
}
}else{
Eg: SendClientMessage(playerid, 0xFFFFF, "You dont no the pin code");
}
return 1;
}
return 0;
}
public PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Floatldposx, Floatldposy, Floatldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposy = (oldposy -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
im tring to add it as a fs but i get them errors what am i doing wrong also how do i make it only open to a faction
C:\Users\alex\Desktop\josegate.pwn(17) : warning 215: expression has no effect
C:\Users\alex\Desktop\josegate.pwn(17) : error 001: expected token: ";", but found "]"
C:\Users\alex\Desktop\josegate.pwn(17) : error 029: invalid expression, assumed zero
C:\Users\alex\Desktop\josegate.pwn(17) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
#include <a_samp>
forward PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z);
new Jose;
public OnFilterScriptInit()
{
Jose = CreateObject(969, 999.17, -644.53, 119.68, 0.00, 0.00, 22.5);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/housegate", cmdtext, true, 10) == 0)
{
if(Eg: PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerToPoint(40, playerid, 999.17, -644.53, 119.6)
{
MoveObject(Jose, 990.08, -646.36, 120.46, 10);
Eg: SendClientMessage(playerid, 0xFFFFFF, "You've opened jose gate");
}
}else{
Eg: SendClientMessage(playerid, 0xFFFFF, "You dont no the pin code");
}
return 1;
}
return 0;
}
public PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Floatldposx, Floatldposy, Floatldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposy = (oldposy -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
im tring to add it as a fs but i get them errors what am i doing wrong also how do i make it only open to a faction