12.03.2011, 14:34
(
Последний раз редактировалось Ifreezesir; 28.05.2011 в 22:13.
)
Fixed
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.5112,87.4867,1003.6406)) //LSPD-Garage Exit { if(IsACop(playerid)) { SetPlayerPos(playerid,1568.5718,-1691.0177,5.8906); SetPlayerFacingAngle(playerid, 180.0000); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); PlayerInfo[playerid][pInt] = 0; |
* error 029: invalid expression, assumed zero |
public IsAVip(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pDonateRank] >= 1) } } return 0; |
else if(IsPlayerInRangeOfPoint(playerid,8.0,1797.4569,-1578.9788,14.085) { if(IsAVip(playerid)) { SetPlayerInterior(playerid,7); SetPlayerPos(playerid,773.579956,-77.096694,1000.655029); GameTextForPlayer(playerid, "~w~VIP", 5000, 1); PlayerInfo[playerid][pInt] = 14; |
stock IsAVip(playerid, reqlevel = 1)
PlayerInfo[playerid][pDonateRank] >= reqlevel ? true : false;
}
else if(IsPlayerInRangeOfPoint(playerid,8.0,1797.4569,-1578.9788,14.0858))
{
SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,773.579956,-77.096694,1000.655029);
GameTextForPlayer(playerid, "~w~VIP", 5000, 1);
PlayerInfo[playerid][pInt] = 14;
}
public IsAVip(playerid)
{
if(IsPlayerConnected(playerid))
{
PlayerInfo[playerid][pDonateRank] >= reqlevel ? true : false;
{
return 1;
}
else if(PlayerInfo[playerid][pLevel] > 1)
{
return 1;
}
}
return 0;
stock IsAVip(playerid, reqlevel = 1)
PlayerInfo[playerid][pDonateRank] >= reqlevel ? true : false;
CMD:entervip(playerid, params[])
{
if(!IsAVip(playerid)) return 0;
if(!IsPlayerInRangeOfPoint(playerid, 8, 1797.4569, -1578.9788, 14.0858)) return 0;
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 773.579956, -77.096694, 1000.655029);
GameTextForPlayer(playerid, "~w~VIP", 5000, 1);
PlayerInfo[playerid][pInt] = 14;
return 1;
}
stock IsAVip(playerid, reqlevel = 1)
PlayerInfo[playerid][pDonateRank] >= reqlevel ? true : false;
C:\Users\Hjem\Desktop\C**P\GameModes\****.pwn(3582) : error 010: invalid function or declaration
C:\Users\Hjem\Desktop\C**P\GameModes\****.pwn(3584) : error 010: invalid function or declaration
C:\Users\Hjem\Desktop\C**P\GameModes\****.pwn(3587) : error 010: invalid function or declaration
C:\Users\Hjem\Desktop\C**P\GameModes\****.pwn(3590) : error 010: invalid function or declaration
}
stock IsAVip(playerid, reqlevel = 1)
PlayerInfo[playerid][pDonateRank] >= reqlevel ? true : false;)
{
if(IsPlayerConnected(playerid))
{
{
return 1;
}
}
return 0;
{
if(IsPlayerConnected(playerid))
{
{
return 1;
}
}
return 0;
#include <a_samp>
#include <zcmd>
enum pInfo
{
pDonateRank
};
new PlayerInfo[MAX_PLAYERS][pInfo];
main()
return 1;
public OnGameModeInit()
return 1;
stock IsAVip(playerid, reqlvl = 1)
return PlayerInfo[playerid][pDonateRank] >= reqlvl ? true : false;
CMD:vip(playerid, params[])
{
if(IsAVip(playerid))
SendClientMessage(playerid, 0xFFFFFFAA, "You are a VIP!");
else if(IsAVip(playerid, 2))
SendClientMessage(playerid, 0x00FF00AA, "You are a VIP level 2!");
else if(IsAVip(playerid, 3))
SendClientMessage(playerid, 0x00FF00AA, "** You are a VIP level 3!");
if(!IsAVip(playerid))
SendClientMessage(playerid, 0xFF0000AA, "You are not a VIP");
return 1;
}