Problem - Business System
#1

Hello guys...

I have a problem with create and destroy dynamicpickup so,take a look:

Errors:

PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(586) : error 017undefined symbol "DestroyDynamicPickup"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(587) : error 017undefined symbol "DestroyDynamicPickup"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(588) : error 017undefined symbol "CreateDynamicPickup"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : error 017undefined symbol "CreateDynamicPickup"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(645) : error 017undefined symbol "DestroyDynamicPickup"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(848) : error 017undefined symbol "CreateDynamicPickup"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(849) : error 017undefined symbol "CreateDynamicPickup"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
7 Errors

Lines:

PHP код:
586: if(BusinessInfo[id][bOutsideIcon]) DestroyDynamicPickup(BusinessInfo[id][bOutsideIcon]); 
PHP код:
587: if(BusinessInfo[id][bInsideIcon]) DestroyDynamicPickup(BusinessInfo[id][bInsideIcon]); 
PHP код:
588anceZ], BusinessInfo[id][bWorld]);//Creates a pickup at your location 
PHP код:
589BusinessInfo[id][bInsideIcon] = CreateDynamicPickup(12721BusinessInfo[id][bExitX], BusinessInfo[id][bExitY], BusBusinessInfo[id][bOutsideIcon] = CreateDynamicPickup(12721BusinessInfo[id][bEntranceX], BusinessInfo[id][bEntranceY], BusinessInfo[id][bEntrinessInfo[id][bExitZ], BusinessInfo[id][bInsideWorld]);//Creates a pickup at your location 
PHP код:
645: if(BusinessInfo[id][bOutsideIcon]) DestroyDynamicPickup(BusinessInfo[id][bOutsideIcon]);//Destroys the pickup. 
PHP код:
848BusinessInfo[idx][bOutsideIcon] = CreateDynamicPickup(12721BusinessInfo[idx][bEntranceX], BusinessInfo[idx][bEntranceY], BusinessInfo[idx][bEntranceZ], BusinessInfo[idx][bWorld]); //Creates a pickup at the business entrance. 
PHP код:
849BusinessInfo[idx][bInsideIcon] = CreateDynamicPickup(12721BusinessInfo[idx][bExitX], BusinessInfo[idx][bExitY], BusinessInfo[idx][bExitZ], BusinessInfo[idx][bInsideWorld]); //Creates a pickup at the exit(Inside the interior) 
Repp+ for help!
Reply
#2

Update your plugin and include "streamer".

In yuour script:

pawn Код:
#include <streamer>
Reply
#3

Now i have got this:

PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : warning 215expression has no effect
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : error 001expected token";"but found ")"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : error 029invalid expressionassumed zero
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : warning 215expression has no effect
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(590 -- 591) : error 017undefined symbol "bEntrinessInfo"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(591) : warning 215expression has no effect
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(591) : error 001expected token";"but found "]"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(591) : error 029invalid expressionassumed zero
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(591) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
6 Errors

These are that error lines:

PHP код:
    BusinessInfo[id][bWorld]);//Creates a pickup at your location
     
BusinessInfo[id][bInsideIcon] = CreateDynamicPickup(12721BusinessInfo[id][bExitX], BusinessInfo[id][bExitY],
    
BusinessInfo[id][bOutsideIcon] = CreateDynamicPickup(12721BusinessInfo[id][bEntranceX], BusinessInfo[id][bEntranceY], BusinessInfo[id][bEntrinessInfo[id][bExitZ], BusinessInfo[id][bInsideWorld]);//Creates a pickup at your location 
Reply
#4

Can you show the code at line 589 - 591 more complete?
And what is this?
Код:
BusinessInfo[id][bEntrinessInfo[id][bExitZ]
I think it's
Код:
BusinessInfo[id][bExitZ]
And you didn't write code correctly
Код:
BusinessInfo[id][bInsideIcon] = CreateDynamicPickup(1272, 1, BusinessInfo[id][bExitX], BusinessInfo[id][bExitY],
Reply
#5

Hey man i fixed some erros now i've got this:

PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : error 012invalid function callnot a valid address
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : error 029invalid expressionassumed zero
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : warning 215expression has no effect
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : error 001expected token";"but found "]"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(589) : fatal error 107too many error messages on one line 
And that error line is this:

PHP код:
    BusinessInfo([id][bWorld]);//Creates a pickup at your location 
Reply
#6

Show some more lines before and after it.
Reply
#7

All of this lines are createbiz command:

PHP код:
CMD:createbiz(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"You aren't authorized to use this command!");//Checks if player is a RCON admin..Change this with your admin system.
    
new pricelevelidintworldstring[128], Float:XiFloat:YiFloat:Ziinti;//All the new defines we will need.
    
if(sscanf(params"dddfff"pricelevelintiXiYiZi)) return SendClientMessage(playerid, -1"YCMD: /createbiz [price] [type] [interior] [X] [Y] [Z]");//d stands for integer, f stands for float.
    
if(level || level 4) return SendClientMessage(playerid, -1"YCMD: Type cannot go below 0, or above 10.");//
    
if(price 10000) return SendClientMessage(playerid, -1"YCMD: Price cannot go below $10,000.");// Check if the price is below 1000, if it is it will return a message saying it.
    
for(new 1;sizeof(BusinessInfo);h++)//Loops through all the businesses
    
{
        if(
BusinessInfo[h][bPrice] == 0)//Checks if the price of a business is 0.
        
{
            
id h;
            break;
//It stops looping if it is.
        
}
    }
    new 
Float:X,Float:Y,Float:Z,Float:A;//More new defines.
    
GetPlayerPos(playeridXYZ);//Gets your player position, and saves it into floats.
    
GetPlayerFacingAngle(playeridA);//Gets your facing angle, and saves it into a float.
    
int GetPlayerInterior(playerid);//Gets your interior, and saves it into a integer.
    
world GetPlayerVirtualWorld(playerid);//Gets your Virtual World, and saves it into a integer
    
BusinessInfo[id][bInsideInt] = inti;
    
BusinessInfo[id][bExitX] = Xi;
    
BusinessInfo[id][bExitY] = Yi;
    
BusinessInfo[id][bExitZ] = Zi;
    
BusinessInfo[id][bOwned] = 0;
    
BusinessInfo[id][bPrice] = price;
    
BusinessInfo[id][bType] = level;
    
BusinessInfo[id][bEntranceX] = X;
    
BusinessInfo[id][bEntranceY] = Y;
    
BusinessInfo[id][bEntranceZ] = Z;
    
BusinessInfo[id][bEntranceA] = A;
    
BusinessInfo[id][bLocked] = 1;
    
BusinessInfo[id][bInt] =int;
    
BusinessInfo[id][bWorld] =world;
    
BusinessInfo[id][bInsideWorld] =id;
    
format(stringsizeof(string), "None");
    
strmid(BusinessInfo[id][bName], string0strlen(string), 255);
    if(
BusinessInfo[id][bOutsideIcon]) DestroyDynamicPickup(BusinessInfo[id][bOutsideIcon]);
     if(
BusinessInfo[id][bInsideIcon]) DestroyDynamicPickup(BusinessInfo[id][bInsideIcon]);
    
BusinessInfo([id][bWorld]);//Creates a pickup at your location
     
BusinessInfo[id][bInsideIcon] = CreateDynamicPickup(12721BusinessInfo[id][bExitX], BusinessInfo[id][bExitY],
    
BusinessInfo[id][bOutsideIcon] = CreateDynamicPickup(12721BusinessInfo[id][bEntranceX], BusinessInfo[id][bEntranceY], BusinessInfo[id][bExitZ], BusinessInfo[id][bInsideWorld]);//Creates a pickup at your location
    
new file4[40];
    
format(file4sizeof(file4), BPATHid);
    new 
INI:File INI_Open(file4);
    
INI_SetTag(File,"data");
    
INI_WriteInt(File,"bOwned"BusinessInfo[id][bOwned]);
    
INI_WriteInt(File,"bPrice"BusinessInfo[id][bPrice]);
    
INI_WriteString(File,"bOwner"BusinessInfo[id][bOwner]);
    
INI_WriteInt(File,"bType"BusinessInfo[id][bType]);
    
INI_WriteInt(File,"bLocked"BusinessInfo[id][bLocked]);
    
INI_WriteInt(File,"bMoney"BusinessInfo[id][bMoney]);
    
INI_WriteFloat(File,"bEntranceX"BusinessInfo[id][bEntranceX]);
    
INI_WriteFloat(File,"bEntranceY"BusinessInfo[id][bEntranceY]);
    
INI_WriteFloat(File,"bEntranceZ"BusinessInfo[id][bEntranceZ]);
    
INI_WriteFloat(File,"bEntranceA"BusinessInfo[id][bEntranceA]);
    
INI_WriteFloat(File,"bExitX"BusinessInfo[id][bExitX]);
    
INI_WriteFloat(File,"bExitY"BusinessInfo[id][bExitY]);
    
INI_WriteFloat(File,"bExitZ"BusinessInfo[id][bExitZ]);
    
INI_WriteFloat(File,"bExitA"BusinessInfo[id][bExitA]);
    
INI_WriteInt(File,"bInt"BusinessInfo[id][bInt]);
    
INI_WriteInt(File,"bWorld"BusinessInfo[id][bWorld]);
    
INI_WriteInt(File,"bInsideInt"BusinessInfo[id][bInsideInt]);
    
INI_WriteInt(File,"bInsideWorld"BusinessInfo[id][bInsideWorld]);
    
INI_WriteString(File,"bName"BusinessInfo[id][bName]);
    
INI_Close(File);
    return 
1;

Reply
#8

What were you trying to do with this line:
PHP код:
     BusinessInfo([id][bWorld]);//Creates a pickup at your location 


Also, you didn't complete the next line.
Reply
#9

Hey @ATGOggy thank you i removed that line. But the real problem was

"BusinessInfo[id][bInsideIcon] = CreateDynamicPickup(1272, 1, BusinessInfo[id][bExitX], BusinessInfo[id][bExitY], " which was not finished new fix is :

BusinessInfo[id][bInsideIcon] = CreateDynamicPickup(1272, 1, BusinessInfo[id][bExitX], BusinessInfo[id][bExitY], BusinessInfo[id][bExitZ], BusinessInfo[id][bInsideWorld]);//Creates a pickup at your location

Here's your repp+!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)