26.11.2013, 16:43
Hello,
Im getting this error:
with this code:
I want a random checkpoint to appear every 20 seconds
Im getting this error:
pawn Код:
(1662) : warning 202: number of arguments does not match definition
// this is the setplayercheckpoint line
pawn Код:
forward RandomCheckPoint();
new Float:RandomCP[][5] =
{
{ 2798.1702,-1576.2926,10.9272, 10.0 },
{ 2060.4375,-2091.2126,13.5469, 10.0 },
{ 070.8125,-2384.6160,13.5469, 10.0 },
{ 900.7358,-1204.0779,16.9832, 10.0 },
{ 800.1103,-1542.8258,13.5526, 10.0 }
};
SetTimer("RandomCP",20000,true);
public RandomCheckPoint()
{
foreach(Player, i)
{
new rand = random(sizeof(RandomCP));
SetPlayerCheckpoint(i,RandomCP[rand][0],RandomCP[rand][1],RandomCP[rand][2],RandomCP[rand][3],RandomCP[rand][4]); //ERROR LINE <===
}
return 1;
}