Those businesses...
#9

Quote:
Originally Posted by Lorenc_
View Post
strlen = strings length

pawn Code:
new string[12] = "12345678910";
printf("String: %s", string);
printf("String Length: %d", strlen(string));
I know what it is for, but how to convert it here??

PHP Code:
CreateBusiness(BusinessName[], Float:XPosFloat:YPosFloat:ZPosPriceSellEarn)
{
    if(!
strlen(BusinessName)) return 0//If there is no name then it will not create the business
    
BusinessCount ++; //Adding 1 onto the businesscount so the first one will be  BusinessInfo[0][....]
    
BusinessInfo[BusinessCount][BusX] = XPos//Sets the Xpos into the variable for long term saving.
    
BusinessInfo[BusinessCount][BusY] = YPos//Sets the Ypos into the variable for long term saving.
    
BusinessInfo[BusinessCount][BusZ] = ZPos//Sets the Zpos into the variable for long term saving.
    
BusinessInfo[BusinessCount][BusCost] = Price//Sets the price into the variable for long term saving.
    
BusinessInfo[BusinessCount][BusSell] = Sell//Sets the Sell cost into the variable for long term saving.
    
BusinessInfo[BusinessCount][BusEarn] = Earn// //Sets the earning into the variable for long term saving.
    
BusinessInfo[BusinessCount][BusOwner] = -1//Sets the business owner into the variable for long term saving.
    
BusinessPickup[BusinessCount] = AddStaticPickup(127219XPosYPosZPos, -1); //Adds the pickup
    
format(BusinessInfo[BusinessCount][BusName], 60"%s"BusinessName); //Sets the business name into the variable for long term saving.
    
return BusinessCount//Will return the business ID
}
public 
OnFilterScriptInit() //Change to OnFilterScriptInit if it's a filterscript =].
{
    
SetTimer("Payouttimer"PayoutTimertrue); //Sets the timer =].
       
CreateBusiness("TestBiz"100.0100.010.01333710000100);
    return 
1;

@Blood

Where to put it's co-ordinates??
Reply


Messages In This Thread
Those businesses... - by samtey - 04.09.2011, 16:49
Re: Those businesses... - by Darnell - 04.09.2011, 16:52
AW: Those businesses... - by samtey - 04.09.2011, 16:59
Re: Those businesses... - by Darnell - 04.09.2011, 17:07
AW: Those businesses... - by samtey - 04.09.2011, 17:45
AW: Those businesses... - by samtey - 05.09.2011, 06:40
Re: Those businesses... - by Lorenc_ - 05.09.2011, 06:45
Re: Those businesses... - by [MWR]Blood - 05.09.2011, 06:46
AW: Re: Those businesses... - by samtey - 05.09.2011, 06:56
Re: Those businesses... - by [HiC]TheKiller - 05.09.2011, 07:00

Forum Jump:


Users browsing this thread: 2 Guest(s)