Help please
#1

Alright. I want to make random checkpoints but I don't get what's wrong here.

pawn Код:
SetPlayerCheckpoint(playerid, Randompost[rand][0], Randompost[rand][1],Randompost[rand][2]);
It says:
pawn Код:
C:\Users\Michael\Desktop\maxlifedontdelete\filterscripts\postmission.pwn(137) : warning 202: number of arguments does not match definition
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint

Size is missing.
Reply
#3

Correct structure:
Код:
SetPlayerCheckpoint(playerid, Pos:x, Pos:y, Pos:z, Float:size);
Reply
#4

Wait don't get it:

Can someone fix it?

pawn Код:
new Float:Randompost[][13] =
{
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872},
    {2495.2620,-1690.3857,14.7656,176.5872}
};

pawn Код:
new rand = random(sizeof(Randompost));
    SetPlayerCheckpoint(playerid,Randompost[rand][0], Randompost[rand][1],Randompost[rand][2],Randompost[rand][3],Randompost[rand][4],Randompost[rand][5],Randompost[rand][6],Randompost[rand][7],Randompost[rand][8],Randompost[rand][9],Randompost[rand][10],Randompost[rand][11],Randompost[rand][11]);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)