My Scripting Questions
#5

Quote:
Originally Posted by moadi
Посмотреть сообщение
pawn Код:
new bool:landstal[MAX_PLAYERS];

if(GetVehicleModel(vehicleid) == 400)
    {
        if(landstal[playerid] == false || !landstal[playerid])
        {
            landstal[playerid] = true;
            SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
            return 0;
        }
        else return 1;
    }
If the variable landstal for a certain player gets set to false in other code, it should be the reason the player gets a +1 whenever he enters
Oh, ok I'll try.

BTW the score issue doesn't work, I'm still getting the same errors:
Код:
(366) : error 029: invalid expression, assumed zero
(366) : warning 215: expression has no effect
(366) : error 001: expected token: ";", but found ")"
(366) : error 029: invalid expression, assumed zero
(366) : fatal error 107: too many error messages on one line
The whole code:
pawn Код:
363:    public LvlTimer(playerid)
364:    {
365:        new score = GetPlayerScore(playerid);
366:        if(score == 10 || <= 10)
367:        {
368:            TextDrawShowForPlayer(playerid, level0);
369:            return 1;
370:        }
371:        if(score >= 11 && <= 100)
372:        {
373:            TextDrawShowForPlayer(playerid, level1);
374:            return 1;
375:        }
376:        if(score >= 101 && <= 500)
377:        {
378:            TextDrawShowForPlayer(playerid, level2);
379:            return 1;
380:        }
381:        return 1;
382:    }
I don't get it...
Reply


Messages In This Thread
My Scripting Questions - by xZacharias - 18.11.2011, 10:53
Re: My Scripting Questions - by CSSI - 18.11.2011, 10:56
Re: My Scripting Questions - by moadi - 18.11.2011, 10:57
Re: My Scripting Questions - by moadi - 18.11.2011, 11:00
Re: My Scripting Questions - by xZacharias - 18.11.2011, 11:12
Re: My Scripting Questions - by xZacharias - 18.11.2011, 11:33
Re: My Scripting Questions - by xZacharias - 18.11.2011, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)