Jump to content
  • 0

Car DamageS


shaun

Question

Sal all as vrea sa stiu si yo cum sa fac ca atunci cand lovesc o masina cu arma sa primeasca damage,ca ies din ea si cand o impusc nu pateste nimika...deci pur si simplu stau si dau in ea cu orice arma dar nimika!

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

am bagat asa in gm :

public OnPlayerShotVehicle(playerid, vehicleid)
{
    //your code here...
    SetPlayerScore(playerid,(GetPlayerScore) +1);
    return 1;
}

public OnPlayerUnShotVehicle(playerid, vehicleid)
{
    //your code here...
	SendClientMessage(playerid,COL_BLUE,"Ai primit score for shotingvehcle!!! xD");
    return 1;
}

si imi da :

C:\DOCUME~1\Original\Desktop\da\GAMEMO~1\DUB.pwn(13735) : error 076: syntax error in the expression, or invalid function call

C:\DOCUME~1\Original\Desktop\da\GAMEMO~1\DUB.pwn(13742) : error 035: argument type mismatch (argument 2)

linia13735:  SetPlayerScore(playerid,(GetPlayerScore) +1);

linia 13742:SendClientMessage(playerid,COL_BLUE,"Ai primit score for shotingvehcle!!! xD");

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

public OnPlayerShotVehicle(playerid, vehicleid)
{
    //your code here...
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    return 1;
}

public OnPlayerUnShotVehicle(playerid, vehicleid)
{
    //your code here...
	SendClientMessage(playerid,COLOR_BLUE,"Ai primit score for shotingvehcle!!! xD");
    return 1;
}

COL_BLUE era definit pentru mesaje in chat, cu "{RRGGBB}", pentru mesaje trebuie 0xRRGGBBFF.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.