18.01.2012, 15:18
Hello, i need help with this, i am very confused how to fix this?
I am making random spawns for it, don't know what to do with this.
These are the positions which are taken from the three commands. The error of arguments are coming of these last three lines.
This is the float for random spawns, everything is correct what's wrong with it?
These are the errors:
My previous dm commands have none errors, but why these have errors?
I am making random spawns for it, don't know what to do with this.
These are the positions which are taken from the three commands. The error of arguments are coming of these last three lines.
pawn Код:
new rand = random(sizeof(spawns));
SetPlayerPos(playerid, RandomPlayerSpawnsSMG[rand][0], RandomPlayerSpawnsSMG[rand][1]);
SetPlayerPos(playerid, RandomPlayerSpawnsAK47[rand][0], RandomPlayerSpawnsAK47[rand][1]);
SetPlayerPos(playerid, RandomPlayerSpawnsKatana[rand][0], RandomPlayerSpawnsKatana[rand][1]);
pawn Код:
new Float:RandomPlayerSpawnsKatana[2][3] =
{ //KANTANADM
{1590.6189,2393.2646,22.8204},
{1626.6914,2389.0703,22.8204}
};
new Float:RandomPlayerSpawnsAK47[2][3] =
{ //AK47 DM
{2836.4141,-2407.7808,36.0648},
{2836.6094,-2487.6553,36.0648}
};
new Float:RandomPlayerSpawnsSMG[2][3] =
{ //SMG DM
{-87.3014,2261.1035,125.5600},
{27.0638,2243.3298,126.6797}
};
Код:
(2114) : warning 202: number of arguments does not match definition (2130) : warning 202: number of arguments does not match definition (2179) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.