01.04.2015, 16:45
Hello, so I've been trying to get my server to change its weather randomly, so I started doing something like this, but it kept saying error 035: argument type mismatch (argument 1)
My code
Could you help me, can't see where i've gone wrong :S
ERROR:
My code
pawn Code:
new Weathers[][] =
{
{8},
{9},
{19}
};
SetTimer("Weatherst", 300000, true); //OnGameModeInit
forward Weatherst(playerid);
public Weatherst(playerid)
{
new RanWeath = random(sizeof(RanWeath));
SetWeather(Weathers[RanWeath]);//ERROR line
}
ERROR:
Code:
(151) : error 035: argument type mismatch (argument 1)