SA-MP Forums Archive
GetServerVarAsInt("weather") Bug in S.O Windows 8 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: GetServerVarAsInt("weather") Bug in S.O Windows 8 (/showthread.php?tid=454882)



GetServerVarAsInt("weather") Bug in S.O Windows 8 - OTACON - 30.07.2013

good at all.

in OS Windows 8 does not work on OS change as Windows 7 Ultimate and bottom works fine and detects the weather perfectly.


Example of use:
pawn Код:
COMMAND:test(playerid, params[]) {
    switch(random(5)) {
        case 0: SetWeather(2), printf("weather ID: %d", GetServerVarAsInt("weather")); //returns to 0
        case 1: SetWeather(1), printf("weather ID: %d", GetServerVarAsInt("weather")); //returns to 0
        case 2: SetWeather(8), printf("weather ID: %d", GetServerVarAsInt("weather")); //returns to 0
        case 3: SetWeather(9), printf("weather ID: %d", GetServerVarAsInt("weather")); //returns to 0
        case 4: SetWeather(4), printf("weather ID: %d", GetServerVarAsInt("weather")); //returns to 0
    } return true;
}
thank you very much,
sorry for my English.



Re: GetServerVarAsInt("weather") Bug in S.O Windows 8 - Luis- - 30.07.2013

I have no idea what you just said.


Re: GetServerVarAsInt("weather") Bug in S.O Windows 8 - Libra_PL - 30.07.2013

He says that code doesn't work on Win8, but it does on Win7. If you don't exactly know what he is talking about, think what could he have on his mind.


Re: GetServerVarAsInt("weather") Bug in S.O Windows 8 - Luis- - 30.07.2013

He could have anything on his mind right now, things like, "hmm, what to do..", "i'm hungry" or "wow, that cow is really awesome.".


Re: GetServerVarAsInt("weather") Bug in S.O Windows 8 - Kwarde - 30.07.2013

I get it though.

This code (that randomly changes weather with a command) doesn't work on his windows 8 PC (and it did work on windows 7).
The GetServerVarAsInt(); function doesn't return the right weather id.


Re: GetServerVarAsInt("weather") Bug in S.O Windows 8 - papedo - 30.07.2013

When you change weather you can save it into a variable and when you want to get it you can read this variable and problem will be fixed.

I think samp team should fix another more important bugs like smoke granade, satchel charges or nightvision synchronization before he will fix bugs which can be fixed by simple script.


Respuesta: GetServerVarAsInt("weather") Bug in S.O Windows 8 - OTACON - 31.07.2013

https://sampwiki.blast.hk/wiki/GetServerVarAsString xDD