Problem in stock CPS_AddCheckpoint
#3

Quote:
Originally Posted by Shockey HD
Посмотреть сообщение
x,y,z are floats.


add new Float: x,Float:y,Float:z; somewhere in the stock.
No, the variable names already exists globally.

pawn Код:
stock CPS_AddCheckpoint(Float:cX,Float:cY,Float:cZ,Float:size,spawn_dist)
{
    new cpid=1;
    while(UsedCPSlot[cpid] == 1) cpid++;
    if(CPSERVICE_active == 0){
        SetTimer("CPSERVICE_Handler",500,true);
        CPSERVICE_active=1;
    }
    UsedCPSlot[cpid]=1;
    Checkpoints[cpid][cpX]=cX;
    Checkpoints[cpid][cpY]=cY;
    Checkpoints[cpid][cpZ]=cZ;
    Checkpoints[cpid][cpsz]=size;
    Checkpoints[cpid][cpsd]=spawn_dist;
    return cpid;
}
Reply


Messages In This Thread
Problem in stock CPS_AddCheckpoint - by ™BilaBonG™ - 03.08.2011, 07:39
Re: Problem in stock CPS_AddCheckpoint - by Shockey HD - 03.08.2011, 07:41
Re: Problem in stock CPS_AddCheckpoint - by Cameltoe - 03.08.2011, 07:43
Re: Problem in stock CPS_AddCheckpoint - by Shockey HD - 03.08.2011, 07:44
Re: Problem in stock CPS_AddCheckpoint - by ™BilaBonG™ - 03.08.2011, 07:59
Re: Problem in stock CPS_AddCheckpoint - by Cameltoe - 03.08.2011, 08:00
Re: Problem in stock CPS_AddCheckpoint - by ™BilaBonG™ - 03.08.2011, 08:05

Forum Jump:


Users browsing this thread: 1 Guest(s)