09.12.2013, 19:05
Hello guys i tried to make business system and I got 4 errors can someone help me to fix it?
SS of the error: http://prntscr.com/29xnfb
This is the line with the problem :
Pawn code:
SS of the error: http://prntscr.com/29xnfb
This is the line with the problem :
pawn Код:
format(string, sizeof(string), "* %s pushes the door and enters the shop.", RPN(playerid));
pawn Код:
for(new idx=1; idx<MAX_BIZ; idx++)
{
if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ]))
{
if(!BizInfo[idx][bStatus] && PlayerInfo[playerid][pBiz] != idx && !PlayerInfo[playerid][pVBiz]) return SendClientMessage(playerid, COLOR_GREY, "This business is closed.");
if(BizInfo[idx][bType] == 1) // 24/7 Business
{
format(string, sizeof(string), "* %s pushes the door and enters the shop.", RPN(playerid));
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerPos(playerid, -25.884498,-185.868988,1003.546875);
SetPlayerFacingAngle(playerid, 357.5915);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 17);
SetPlayerVirtualWorld(playerid, idx+6000);
format(string, sizeof(string), "** Welcome to %s's 24/7 Market (( /buy )) **", BizInfo[idx][bOwner]);
SendClientMessage(playerid, COLOR_ORANGE, string);
return 1;
}