03.08.2011, 07:39
Hello and Good morning
I have a problem Struck CPS_AddCheckpoint
Wornings:
lines:
Hope you help me
I have a problem Struck CPS_AddCheckpoint
Wornings:
PHP код:
C:\Users\ъойш\Desktop\samp03csvr_R5_win32\gamemodes\lvdm.pwn(5629) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\ъойш\Desktop\samp03csvr_R5_win32\gamemodes\lvdm.pwn(5629) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\ъойш\Desktop\samp03csvr_R5_win32\gamemodes\lvdm.pwn(5629) : warning 219: local variable "Z" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
PHP код:
stock CPS_AddCheckpoint(Float:X,Float:Y,Float:Z,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]=X;
Checkpoints[cpid][cpY]=Y;
Checkpoints[cpid][cpZ]=Z;
Checkpoints[cpid][cpsz]=size;
Checkpoints[cpid][cpsd]=spawn_dist;
return cpid;
}