- 0
Help pls
-
Similar Content
-
- 0 answers
- 560 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
ReaxoR
[pawn]
else if(strcmp(x_nr,"color",true) == 0)
{
if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999)
{
SendClientMessage(playerid, COLOR_GREY," Nu ai o masina ca sa o vopsesti! ");
return 1;
}
if(GetPlayerMoney(playerid) < 100);
{
SendClientMessage(playerid, COLOR_GREY," Nu ai destui bani ca sa vopsesti masina!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /v color [ColorOneID] [ColorTwoID]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 && color1 > 126)
{
SendClientMessage(playerid, COLOR_GREY, " Color ID gresit!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /v color [ColorOneID] [ColorTwoID]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 && color2 > 126)
{
SendClientMessage(playerid, COLOR_GREY, " Color ID gresit!");
return 1;
}
new vehid;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { vehid = PlayerInfo[playerid][pPcarkey]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { vehid = PlayerInfo[playerid][pPcarkey2]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { vehid = PlayerInfo[playerid][pPcarkey3]; }
else { return 1; }
if(IsPlayerInVehicle(playerid, vehid))
{
CarInfo[vehid][cColorOne] = color1;
CarInfo[vehid][cColorTwo] = color2;
GivePlayerCash(playerid, -20000);
GameTextForPlayer(playerid, "~w~Factura pentru vopsire~n~~r~-$20000", 5000, 1);
ChangeVehicleColor(vehid, color1, color2);
OnPropUpdate();
return 1;
}[/pawn]
Imi da 1 eroare si un warning si nu inteleg ma puteti ajuta
C:\Users\Radu\Desktop\GTA Game-Romania\gamemodes\PG.pwn(26532) : error 036: empty statement
C:\Users\Radu\Desktop\GTA Game-Romania\gamemodes\PG.pwn(26537) : warning 225: unreachable code
linia 26532
[pawn]if(GetPlayerMoney(playerid) < 100);[/pawn]
linia 26537
[pawn]tmp = strtok(cmdtext, idx);[/pawn]
[MAP]Noul Cartier - http://www.sa-mp.ro/forum/index.php?topic=31520.0
2 answers to this question
Recommended Posts