Jump to content

Question

Posted

Sall all deci am fakt azi ceva td-uri care arata cat coins ai cat dm score ai etc...

si am pus la onplayerupdate asa:

[pawn]

public OnPlayerUpdate(playerid)

{

if(TextDrawSetString(DMScoreP, dmstrg))

{

format(dmstrg, 56, "%d",pInfo[playerid][Dmp]);

}

if(TextDrawSetString(RScoreP, rstrg))

{

format(rstrg, 56, "%d",pInfo[playerid][Rap]);

}

if(TextDrawSetString(CoinsP, cstrg))

{

format(cstrg, 56, "%d",pInfo[playerid][Coins]);

}

    if(IsPlayerInRangeOfPoint(playerid, 7.0, 651.9136,-2825.4656,46.4523))

{

    SpawnPlayer(playerid);

    GameTextForPlayer(playerid,"You finished the MAZE!!",5000,5);

    GivePlayerMoney(playerid, 1000);

    pInfo[playerid][Coins] += 5;

    SendClientMessage(playerid,-1,"You will receive $50.000 and 5 coins!");

    SetPVarInt(playerid,"InMaze",0);

}

return 1;

}

[/pawn]

am incercat n metode ca sa apara acolo cat coins si dm score am dat nu imi apare pls help!!:(nush ce are...

Fara reclama in semnatura!

4 answers to this question

Recommended Posts

Posted

Testeaza:

[pawn]public OnPlayerUpdate(playerid)

{

format(dmstrg, 56, "%d",pInfo[playerid][Dmp]);

TextDrawSetString(DMScoreP, dmstrg);

format(rstrg, 56, "%d",pInfo[playerid][Rap]);

TextDrawSetString(RScoreP, rstrg);

format(cstrg, 56, "%d",pInfo[playerid][Coins]);

TextDrawSetString(CoinsP, cstrg);

if(IsPlayerInRangeOfPoint(playerid, 7.0, 651.9136,-2825.4656,46.4523))

{

    SpawnPlayer(playerid);

    GameTextForPlayer(playerid,"You finished the MAZE!!",5000,5);

    GivePlayerMoney(playerid, 1000);

    pInfo[playerid][Coins] += 5;

    SendClientMessage(playerid,-1,"You will receive $50.000 and 5 coins!");

    SetPVarInt(playerid,"InMaze",0);

}

return 1;

}[/pawn]

Posted

stuntman-=!!" post="75019" timestamp="1306689470"]

Testeaza:

[pawn]public OnPlayerUpdate(playerid)

{

format(dmstrg, 56, "%d",pInfo[playerid][Dmp]);

TextDrawSetString(DMScoreP, dmstrg);

format(rstrg, 56, "%d",pInfo[playerid][Rap]);

TextDrawSetString(RScoreP, rstrg);

format(cstrg, 56, "%d",pInfo[playerid][Coins]);

TextDrawSetString(CoinsP, cstrg);

if(IsPlayerInRangeOfPoint(playerid, 7.0, 651.9136,-2825.4656,46.4523))

{

    SpawnPlayer(playerid);

    GameTextForPlayer(playerid,"You finished the MAZE!!",5000,5);

    GivePlayerMoney(playerid, 1000);

    pInfo[playerid][Coins] += 5;

    SendClientMessage(playerid,-1,"You will receive $50.000 and 5 coins!");

    SetPVarInt(playerid,"InMaze",0);

}

return 1;

}[/pawn]

tot nu apare nush ce are:|

Fara reclama in semnatura!

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.