Detaljan opis problema: Pa radio sam biznis system spored ovaj tut: http://forum.sa-mp.com/showthread.php?t=349466 i baca mi erore neke.
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(340) : error 010: invalid function or declaration
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10875) : error 028: invalid subscript (not an array or too many subscripts): "InsideBiz"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10875) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10875) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10875) : fatal error 107: too many error messages on one linenew InsideBiz;//1 eror na 340 liniju.
SetPlayerVirtualWorld(playerid, BusinessInfo);//linija gde mi baca ostale erore
Evo i cela komanda ako moze posluzit
CMD:enter(playerid, params[])
{
for(new b = 1; b < sizeof(BusinessInfo); b++)//Loops through all the businesses.
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, BusinessInfo, BusinessInfo, BusinessInfo))//Checks if player is near the entrance.
{
if(BusinessInfo == 1) return SendClientMessage(playerid, COLOR_GREY, "This Business is locked!");//Checks it it is locked/
SetPlayerPos(playerid, BusinessInfo, BusinessInfo, BusinessInfo);
SetPlayerFacingAngle(playerid, BusinessInfo);
SetPlayerInterior(playerid, BusinessInfo);
SetPlayerVirtualWorld(playerid, BusinessInfo);
InsideBiz = b;
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, BusinessInfo, BusinessInfo, BusinessInfo) && GetPlayerVirtualWorld(playerid) == BusinessInfo)//Checks if player is in near the exit.
{
SetPlayerPos(playerid, BusinessInfo, BusinessInfo, BusinessInfo);
SetPlayerFacingAngle(playerid, BusinessInfo);
SetPlayerInterior(playerid, BusinessInfo);
SetPlayerVirtualWorld(playerid, BusinessInfo);
InsideBiz = 0;
return 1;
}
}
return 1;
}Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
