04.08.2010, 23:23
Hello i'm trying to make a random weather thingy for onplayerrequestclass.
But i get errors :S so i kinda need help.
Errors :
I hope to get an answer soon.
[Doppeyy
But i get errors :S so i kinda need help.
pawn Код:
new Float:RandomWeather[1][] =
{
{6},{8},{9},{11},{16},
{19},{20},{21},{22},{24},
{31},{33},{34},{35},{37},
{39},{41},{43},{44},{45}
};
forward Weather(playerid);
public OnPlayerRequestClass(playerid, classid)
{
SetTimer("Weather",5000,1);
return 1;
}
public Weather(playerid)
{
new rand = random(sizeof(RandomWeather));
SetPlayerWeather(playerid,RandomWeather[rand][0]);
return 1;
}
Код:
C:\Documents and Settings\Administrator\Desktop\samp03asvr_R8_win32\gamemodes\Party.pwn(47) : warning 213: tag mismatch C:\Documents and Settings\Administrator\Desktop\samp03asvr_R8_win32\gamemodes\Party.pwn(47) : error 018: initialization data exceeds declared size C:\Documents and Settings\Administrator\Desktop\samp03asvr_R8_win32\gamemodes\Party.pwn(51) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\samp03asvr_R8_win32\gamemodes\Party.pwn(291) : warning 213: tag mismatch
[Doppeyy