04.02.2012, 15:10
hey guys,
i have mad ethis that when a player does /deal and he reaches his checkpoint the checkpoint gets deleted and he gets a random money... but the random thing isnt working.. it is giving this error:
and i know this means that i typed something wrong.. but what? and how to fix it?
this are my pawn codes:
on top of script:
on onplayerenter checkpoint:
plsh elp
greets niels
i have mad ethis that when a player does /deal and he reaches his checkpoint the checkpoint gets deleted and he gets a random money... but the random thing isnt working.. it is giving this error:
Код:
D:\Program Files\[0.3d]my own drifting gamemode\gamemodes\TorettoRacing1.pwn(12308) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
this are my pawn codes:
on top of script:
pawn Код:
new RandomMoney[][] =
{
{5000},
{3900},
{8900},
{7600},
{6758},
{4589},
{3000}
};
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid,RandomMoney[random(sizeof(RandomMoney))]);// this line gives the error
DisablePlayerCheckpoint(playerid);
return 1;
}
greets niels