28.06.2009, 20:16
How can i take the Weather ? Is there any function ? Like GetWeather() ?
GetWeather(playerid);
SetWeather(weatherid);
if(weatherid = THEWEATHERIDYOUWANT);
Originally Posted by [HiC
TheKiller ]
I don't think there is a function like that. I think the reasoning behind that is it is pointless. Why do you even need it? |
Originally Posted by oh
And I guess that you can use this too:
pawn Код:
|
if(strcmp(cmdtext, "/weather", true) == 0) { new Weather; Weather = GetPlayerWeather(weatherid); new string[30]; format(string, 30, "Weather ID $%d", Weather); SendClientMessage(playerid, COLOR_WHITE,string); return 1; }
Originally Posted by krisk
That isn't even remotely right in any sense, where did you get the weatherid from? Just randomly making up variables with no relations to the subject, and an IF statement there? and ending an IF statement with a semi-colon? I haven't seen that many errors in one line before.
|
new weather = GetServerVarAsInt("weather")