Jump to content
  • 0

Masinii in functie de rank


Question

Posted

Cum pot sa fac masiniile in functie de rank?De ex unu de rank1 sa poata luat doar anumite masini... cei de rank2 doar anumite masini + cele care le pot lua si cei de rank 1,si tot asa... :)

9 answers to this question

Recommended Posts

Posted

La onplayerstatechange

[pawn]if(newcar == ID Masina || newcar == ID Masina)

{

    if(PlayerInfo[playerid][pMember] == ID || PlayerInfo[playerid][pLeader] == ID)

    {

        if(PlayerInfo[playerid][pRank] < 1)

        {

        SendClientMessage(playerid,COLOR_GREY,"  You need Rank 1 to drive this car !");

        RemovePlayerFromVehicle(playerid);

          }

    }

    else

    {

        RemovePlayerFromVehicle(playerid);

    }

}[/pawn]

gXvsYS
Posted

C:\Documents and Settings\Calin\My Documents\tot ce tine de samp\srvr1\gamemodes\rcrpr.pwn(8015) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Calin\My Documents\tot ce tine de samp\srvr1\gamemodes\rcrpr.pwn(8015) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Calin\My Documents\tot ce tine de samp\srvr1\gamemodes\rcrpr.pwn(8015) : warning 215: expression has no effect

C:\Documents and Settings\Calin\My Documents\tot ce tine de samp\srvr1\gamemodes\rcrpr.pwn(8015) : error 001: expected token: ";", but found ")"

C:\Documents and Settings\Calin\My Documents\tot ce tine de samp\srvr1\gamemodes\rcrpr.pwn(8015) : fatal error 107: too many error messages on one line

Ce sa fac? Ca am pus ; ???

Posted

[pawn]C:\Documents and Settings\Calin\Desktop\srvr1\pawno\include\JunkBuster.inc(3250) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

C:\Documents and Settings\Calin\Desktop\srvr1\gamemodes\RCRPR.pwn(7966) : error 017: undefined symbol "newcar"

C:\Documents and Settings\Calin\Desktop\srvr1\gamemodes\RCRCR.pwn(11142) : warning 204: symbol is assigned a value that is never used: "caritate2"

C:\Documents and Settings\Calin\Desktop\srvr1\gamemodes\RCRPR.pwn(11141) : warning 204: symbol is assigned a value that is never used: "caritate1"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

Posted

[pawn] if(newcar == 1 || newcar == 9)

{

    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)

    {

        if(PlayerInfo[playerid][pRank] < 1)

        {

        SendClientMessage(playerid,COLOR_GREY,"  You need Rank 1 to drive this car !");

        RemovePlayerFromVehicle(playerid);

          }

    }

    else

    {

        RemovePlayerFromVehicle(playerid);

    }[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.