angel
-
Posts
179 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Posts posted by angel
-
-
Result:
Opening angle brackets ({): 7194
Closing angle brackets (}): 7194
Everything was fineNu inteleg,asta inseamna ca atatea sunt sau ca atatea lipsesc?Am dat open la gm cu programu. "Everything was fine" Totul e ok.In fine mersi de ajutor.Am gm-u de rezerva.Mersi oricum
-
Mersi
-
Serios? o sa imi ia ani sa gasesc problema..
-
Problema intalnita (descriere): Totul era ok,gamemodul se compila fara erori.Dupa 10-15 minute cand ii dau compile,imi da 26 errors.Am vazut ca mi-au cam 8000 linii din gm.Incepand de la comanda /ram.Am adaugat partea lipsa.Iar acum imi da niste erori ciudate.
Ero(area / rile) / warning-(ul / urile):C:Desktop\samp03\gamemodes\gm.pwn((41711) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41713) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41714) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41715) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41716) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41717) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41718) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41719) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41720) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41721) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41722) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41723) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41724) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41725) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41726) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41727) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41728) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41729) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41730) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41731) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41732) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41733) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41734) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41735) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn((41736) : error 075: input line too long (after substitutions)
C:Desktop\samp03\gamemodes\gm.pwn(41737) : error 075: input line too long (after substitutions)[/quote]
Liniile de cod / sursa / script-ul(obligatoriu): Nu exista linii,de la 41711 nu mai e nimic.41711 e finalul gm-ului
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da,tot incerc sa imi amintesc ce am facut ultima data,poate sa fie de la o mica modificare...
-
Cineva?scuze de double.
-
Nu cred ca aia ar fi problema,dar voi incerca.
ButtonExit = TextDrawCreate(321.875000, 392.583496, "Exit");
TextDrawLetterSize(ButtonExit, 0.603124, 2.591666);
TextDrawTextSize(ButtonExit, 25.000000, 45.000000);
TextDrawAlignment(ButtonExit, 2);
TextDrawColor(ButtonExit, -1);
TextDrawSetShadow(ButtonExit, 0);
TextDrawSetOutline(ButtonExit, 1);
TextDrawBackgroundColor(ButtonExit, 51);
TextDrawFont(ButtonExit, 1);
TextDrawSetProportional(ButtonExit, 1);
TextDrawSetSelectable(ButtonExit, true);ButtonMasini = TextDrawCreate(17.250000, 204.583435, "Cars");
TextDrawLetterSize(ButtonMasini, 0.449999, 1.600000);
TextDrawTextSize(ButtonMasini, 25.000000, 45.000000);
TextDrawAlignment(ButtonMasini, 2);
TextDrawColor(ButtonMasini, -1);
TextDrawSetShadow(ButtonMasini, 0);
TextDrawSetOutline(ButtonMasini, 1);
TextDrawBackgroundColor(ButtonMasini, 51);
TextDrawFont(ButtonMasini, 1);
TextDrawSetProportional(ButtonMasini, 1);
TextDrawSetSelectable(ButtonMasini, true); -
-
Problema intalnita (descriere): Am un dealership si inca cateva chestii cu textdraw clickable.In ultima vreme nu mai pot sa dau click pe ele.Dau click degeaba,nu se intampla nimic.Desi inainte a functionat perfect.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): Nu cred ca e necesar,nici nu prea stiu ce linii as putea da.
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da. -
Imposibil.Ai pus exact cum am scris?
-
Adaugi la inceput la GM printre celalalte "new":
new Text:TDEditor_TD1, Text:TDEditor_TD2, Text:TDEditor_TD3, Text:TDEditor_TD4;
Adauga la "OnPlayerConnect":
TextDrawShowForPlayer(playerid, TDEditor_TD1);
TextDrawShowForPlayer(playerid, TDEditor_TD2);
TextDrawShowForPlayer(playerid, TDEditor_TD3);
TextDrawShowForPlayer(playerid, TDEditor_TD4);[/quote]
Adauga la "OnGameModeInit" peste celalalt:
TDEditor_TD1 = TextDrawCreate(503.399963, 418.573303, "LD_pool:ball");
TextDrawLetterSize(TDEditor_TD1, 0.000000, 0.000000);
TextDrawTextSize(TDEditor_TD1, 31.000000, 27.000000);
TextDrawAlignment(TDEditor_TD1, 1);
TextDrawColor(TDEditor_TD1, -1);
TextDrawSetShadow(TDEditor_TD1, 0);
TextDrawSetOutline(TDEditor_TD1, 0);
TextDrawBackgroundColor(TDEditor_TD1, 255);
TextDrawFont(TDEditor_TD1, 4);
TextDrawSetProportional(TDEditor_TD1, 0);
TextDrawSetShadow(TDEditor_TD1, 0);TDEditor_TD2 = TextDrawCreate(487.400115, 390.199951, "");
TextDrawLetterSize(TDEditor_TD2, 0.000000, 0.000000);
TextDrawTextSize(TDEditor_TD2, 64.000000, 53.000000);
TextDrawAlignment(TDEditor_TD2, 1);
TextDrawColor(TDEditor_TD2, -1);
TextDrawSetShadow(TDEditor_TD2, 0);
TextDrawSetOutline(TDEditor_TD2, 0);
TextDrawBackgroundColor(TDEditor_TD2, 0);
TextDrawFont(TDEditor_TD2, 5);
TextDrawSetProportional(TDEditor_TD2, 0);
TextDrawSetShadow(TDEditor_TD2, 0);
TextDrawSetPreviewModel(TDEditor_TD2, 18931);
TextDrawSetPreviewRot(TDEditor_TD2, 250.000000, 0.000000, 272.000000, 1.000000);TDEditor_TD3 = TextDrawCreate(510.799957, 422.213317, "G");
TextDrawLetterSize(TDEditor_TD3, 0.620800, 2.257067);
TextDrawAlignment(TDEditor_TD3, 1);
TextDrawColor(TDEditor_TD3, -16776961);
TextDrawSetShadow(TDEditor_TD3, 0);
TextDrawSetOutline(TDEditor_TD3, 0);
TextDrawBackgroundColor(TDEditor_TD3, 255);
TextDrawFont(TDEditor_TD3, 1);
TextDrawSetProportional(TDEditor_TD3, 1);
TextDrawSetShadow(TDEditor_TD3, 0);TDEditor_TD4 = TextDrawCreate(534.000122, 429.679992, "ta-Mp");
TextDrawLetterSize(TDEditor_TD4, 0.418400, 1.756800);
TextDrawAlignment(TDEditor_TD4, 1);
TextDrawColor(TDEditor_TD4, -16776961);
TextDrawSetShadow(TDEditor_TD4, 0);
TextDrawSetOutline(TDEditor_TD4, 0);
TextDrawBackgroundColor(TDEditor_TD4, 255);
TextDrawFont(TDEditor_TD4, 1);
TextDrawSetProportional(TDEditor_TD4, 1);
TextDrawSetShadow(TDEditor_TD4, 0);- 1
-
new Float: MaxVehicleSpeed[212][11] = {
{160.00, 160.00, 200.00, 120.00, 150.00, 165.00, 110.00, 170.00, 110.00, 180.00, 160.00},
{240.00, 160.00, 160.00, 140.00, 230.00, 155.00, 200.00, 150.00, 160.00, 180.00, 180.00},
{165.00, 145.00, 170.00, 200.00, 200.00, 170.00, 170.00, 200.00, 190.00, 130.00, 80.000},
{180.00, 200.00, 120.00, 160.00, 160.00, 160.00, 160.00, 160.00, 75.000, 150.00, 150.00},
{110.00, 165.00, 190.00, 200.00, 190.00, 150.00, 120.00, 240.00, 190.00, 190.00, 190.00},
{140.00, 160.00, 160.00, 165.00, 160.00, 200.00, 190.00, 260.00, 190.00, 75.000, 75.000},
{160.00, 160.00, 190.00, 200.00, 170.00, 160.00, 190.00, 190.00, 160.00, 160.00, 200.00},
{200.00, 150.00, 165.00, 200.00, 120.00, 150.00, 120.00, 190.00, 160.00, 100.00, 200.00},
{200.00, 170.00, 170.00, 160.00, 160.00, 190.00, 220.00, 170.00, 200.00, 200.00, 140.00},
{140.00, 160.00, 75.000, 260.00, 260.00, 160.00, 260.00, 230.00, 165.00, 140.00, 120.00},
{140.00, 200.00, 200.00, 200.00, 120.00, 120.00, 165.00, 165.00, 160.00, 340.00, 340.00},
{190.00, 190.00, 190.00, 110.00, 160.00, 160.00, 160.00, 170.00, 160.00, 60.000, 70.000},
{140.00, 200.00, 160.00, 160.00, 160.00, 110.00, 110.00, 150.00, 160.00, 230.00, 160.00},
{165.00, 260.00, 160.00, 160.00, 160.00, 200.00, 160.00, 160.00, 165.00, 160.00, 200.00},
{170.00, 180.00, 110.00, 110.00, 200.00, 200.00, 200.00, 200.00, 200.00, 200.00, 75.000},
{200.00, 160.00, 160.00, 170.00, 110.00, 110.00, 90.000, 60.000, 110.00, 60.000, 160.00},
{160.00, 200.00, 110.00, 160.00, 165.00, 190.00, 160.00, 170.00, 120.00, 165.00, 260.00},
{200.00, 140.00, 200.00, 260.00, 120.00, 200.00, 200.00, 60.000, 190.00, 200.00, 200.00},
{200.00, 160.00, 165.00, 110.00, 200.00, 200.00, 260.00, 260.00, 160.00, 160.00, 160.00}
};[/quote]
-
Sincer nu stiu,eu nu cred ca acolo ar fi problema.Dar ma rog...
Fi putin mai explicit, care e backroundul culoare din poza si care cand apare si dispare.Din ce ai scris nu prea am inteles.
-
Incearca asa:
if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 5);
{
SetPlayerAttachedObject(playerid, 0, 1463, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
}
else return SendClientMessage(playerid, COLOR_GREY, " Pune mesajul tau daca vrei unul");
-
Banuiesc ca asa ar veni,sau fiecare e separat? "160.00" ... "200.00" ?
new Float: MaxVehicleSpeed[212] = {
{160.00, 160.00, 200.00, 120.00, 150.00, 165.00, 110.00, 170.00, 110.00, 180.00, 160.00},
{240.00, 160.00, 160.00, 140.00, 230.00, 155.00, 200.00, 150.00, 160.00, 180.00, 180.00},
{165.00, 145.00, 170.00, 200.00, 200.00, 170.00, 170.00, 200.00, 190.00, 130.00, 80.000},
{180.00, 200.00, 120.00, 160.00, 160.00, 160.00, 160.00, 160.00, 75.000, 150.00, 150.00},
{110.00, 165.00, 190.00, 200.00, 190.00, 150.00, 120.00, 240.00, 190.00, 190.00, 190.00},
{140.00, 160.00, 160.00, 165.00, 160.00, 200.00, 190.00, 260.00, 190.00, 75.000, 75.000},
{160.00, 160.00, 190.00, 200.00, 170.00, 160.00, 190.00, 190.00, 160.00, 160.00, 200.00},
{200.00, 150.00, 165.00, 200.00, 120.00, 150.00, 120.00, 190.00, 160.00, 100.00, 200.00},
{200.00, 170.00, 170.00, 160.00, 160.00, 190.00, 220.00, 170.00, 200.00, 200.00, 140.00},
{140.00, 160.00, 75.000, 260.00, 260.00, 160.00, 260.00, 230.00, 165.00, 140.00, 120.00},
{140.00, 200.00, 200.00, 200.00, 120.00, 120.00, 165.00, 165.00, 160.00, 340.00, 340.00},
{190.00, 190.00, 190.00, 110.00, 160.00, 160.00, 160.00, 170.00, 160.00, 60.000, 70.000},
{140.00, 200.00, 160.00, 160.00, 160.00, 110.00, 110.00, 150.00, 160.00, 230.00, 160.00},
{165.00, 260.00, 160.00, 160.00, 160.00, 200.00, 160.00, 160.00, 165.00, 160.00, 200.00},
{170.00, 180.00, 110.00, 110.00, 200.00, 200.00, 200.00, 200.00, 200.00, 200.00, 75.000},
{200.00, 160.00, 160.00, 170.00, 110.00, 110.00, 90.000, 60.000, 110.00, 60.000, 160.00},
{160.00, 200.00, 110.00, 160.00, 165.00, 190.00, 160.00, 170.00, 120.00, 165.00, 260.00},
{200.00, 140.00, 200.00, 260.00, 120.00, 200.00, 200.00, 60.000, 190.00, 200.00, 200.00},
{200.00, 160.00, 165.00, 110.00, 200.00, 200.00, 260.00, 260.00, 160.00, 160.00, 160.00},
{140.00, 160.00, 260.00}
};[/quote]
-
-
if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pMember] == 5);
{
SetPlayerAttachedObject(playerid, 0, 1463, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
}
else return SendClientMessage(playerid, COLOR_GREY, " Pune mesajul tau daca vrei unul");
-
Verifica la "OnPlayerEnterVehicle" daca nu cumva ai "TextDrawShowForPlayer" acolo cu "DSBox[0..1..2]"
Si adauga "TextDrawShowForPlayer(playerid,DSBox[0]); " la fiecare button care il ai.Gen "stanga" "dreapta"..etc. Banuiesc ca "DSBox[0..1..2]" e backround-ul de care zici.
-
CMD:carcolor11(playerid, params[])
{
new saveQuery[600];
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new color1,color2;
if(sscanf(params, "ii",color1,color2)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/carcolor [color1] [color2]");
{
if(color1 < 0 || color2 > 255) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Invalid color ID.");
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid == playerVariables[playerid][pCarID1])
{
format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarColour1 = '%d', playerCarColour2 = '%d' WHERE playerID = '%d'",color1, color2, playerVariables[playerid][pInternalID]);
mysql_tquery(handle,saveQuery);
//SetVehicleToRespawn(vehicleid);
playerVariables[playerid][pCarColour1][0] = color1;
playerVariables[playerid][pCarColour1][1] = color2;
SendClientMessage(playerid, COLOR_YELLOW, "You've succesfull change car 1 colors.");
ChangeVehicleColor(vehicleid, playerVariables[playerid][pCarColour1][0],playerVariables[playerid][pCarColour1][1]);
}
else if(vehicleid == playerVariables[playerid][pCarID2])
{
ChangeVehicleColor(vehicleid, color1, color2);
format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarColour21 = '%d', playerCarColour22 = '%d' WHERE playerID = '%d'",color1, color2, playerVariables[playerid][pInternalID]);
mysql_tquery(handle,saveQuery);
//SetVehicleToRespawn(vehicleid);
playerVariables[playerid][pCarColour2][0] = color1;
playerVariables[playerid][pCarColour2][1] = color2;
SendClientMessage(playerid, COLOR_YELLOW, "You've succesfull change car 2 colors.");
}
else if(vehicleid == playerVariables[playerid][pCarID3])
{
ChangeVehicleColor(vehicleid, color1, color2);
format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarColor31 = '%d', playerCarColor32 = '%d' WHERE playerID = '%d'",color1, color2, playerVariables[playerid][pInternalID]);
mysql_tquery(handle,saveQuery);
//SetVehicleToRespawn(vehicleid);
playerVariables[playerid][pCarColour3][0] = color1;
playerVariables[playerid][pCarColour3][1] = color2;
SendClientMessage(playerid, COLOR_YELLOW, "You've succesfull change car 3 colors.");
}
else if(vehicleid == playerVariables[playerid][pCarID4])
{
ChangeVehicleColor(vehicleid, color1, color2);
format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarColor41 = '%d', playerCarColor42 = '%d' WHERE playerID = '%d'",color1, color2, playerVariables[playerid][pInternalID]);
mysql_tquery(handle,saveQuery);
//SetVehicleToRespawn(vehicleid);
playerVariables[playerid][pCarColour4][0] = color1;
playerVariables[playerid][pCarColour4][1] = color2;
SendClientMessage(playerid, COLOR_YELLOW, "You've succesfull change car 4 colors.");
}
}
}
return 1;
}[/quote]
- 1
-
Vezi daca merge:
CMD:exam(playerid, params[])
{
if(playerVariables[playerid][pAdminLevel] == 0)
{
if(playerVariables[playerid][pDriveLicense] >= 1)
{
if(PlayerToPoint(3.0,playerid,1219.1953,-1811.7037,16.5938))
{
if(TakingLesson[playerid] == 0)
{
new countz;
for(new v = 0; v <= MAX_VEHICLES; v++)
{
if(IsADmvCar(v))
{
if(!IsVehicleOccupied(v))
{
countz++;
SetVehicleToRespawn(v);
PutPlayerInVehicle(playerid, v, 0);
TakingLesson[playerid] = 1;
CPR[playerid] = 100;
SetPlayerRaceCheckpoint(playerid, 0,checkexam[0][0],checkexam[0][1],checkexam[0][2],checkexam[1][0],checkexam[1][1],checkexam[1][2],5.0);
TextDrawSetString(DMV2[playerid], "Checkpoints: 0/11");
TextDrawShowForPlayer(playerid, DMV1[playerid]);
TextDrawShowForPlayer(playerid, DMV2[playerid]);
break;
}
}
}
if(countz == 0)
{
SendClientMessage(playerid, -1, "{FFEE00}DMV information: {FFFFFF}There are no available vehicles at the DMV!");
TakingLesson[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, -1, "{FFEE00}DMV information: {FFFFFF}You are already taking the exam!");
}
}
else return SendClientMessage(playerid, COLOR_WHITE, "{FFEE00}DMV information: {FFFFFF}Error: You are not at the DMV!");
}
else return SendClientMessage(playerid, COLOR_WHITE, "{FFEE00}DMV information: {FFFFFF}Error: You already have a driving license!");
}
else
{
new countz;
TakingLesson[playerid] = 1;
for(new v = 0; v <= MAX_VEHICLES; v++)
{
if(IsADmvCar(v))
{
if(!IsVehicleOccupied(v))
{
countz++;
SetVehicleToRespawn(v);
PutPlayerInVehicle(playerid, v, 0);
TakingLesson[playerid] = 1;
CPR[playerid] = 100;
SetPlayerRaceCheckpoint(playerid, 0,checkexam[0][0],checkexam[0][1],checkexam[0][2],checkexam[1][0],checkexam[1][1],checkexam[1][2],5.0);
TextDrawSetString(DMV2[playerid], "Checkpoints: 0/11");
TextDrawShowForPlayer(playerid, DMV1[playerid]);
TextDrawShowForPlayer(playerid, DMV2[playerid]);
break;
}
}
}
if(countz == 0)
{
SendClientMessage(playerid, -1, "{FFEE00}DMV information: {FFFFFF}There are no available vehicles at the DMV!");
TakingLesson[playerid] = 0;
}
else
{
SCM(playerid, -1, "{FFEE00}DMV information: {FFFFFF}Follow these checkpoint to pass the DMV exam.");
}
}
return 1;
}[/quote]
-
"warning: loose indentation'' = Nu e aranjat bine
"warning: symbol is never used'' = symbolul nu este folosit
warning 219: local variable "string" shadows a variable at a preceding level = ''string'' este definit de mai multe ori
- 1
-
Incearca:
CMD:acceptdice(playerid, params[]) { if(!isnull(params)) { if(GetPVarInt(playerid, "bID") >= 0) { new id; id = GetPVarInt(playerid, "bID"); if(GetPlayerVirtualWorld(playerid)-BUSINESS_VIRTUAL_WORLD >= 1) { new businessID = GetPlayerVirtualWorld(playerid)-BUSINESS_VIRTUAL_WORLD; if(businessVariables[businessID][bType] == 10) { if(IsPlayerInRangeOfPlayer(playerid, id, 4.0)) { new Numbers[3][MAX_PLAYERS]; Numbers[0][playerid] = 1 + random(5); Numbers[1][playerid] = 1 + random(5); Numbers[2][playerid] = Numbers[0][playerid] + Numbers[1][playerid]; Numbers[0][id] = 1 + random(5); Numbers[1][id] = 1 + random(5); Numbers[2][id] = Numbers[0][id] + Numbers[1][id]; new pprice = GetPVarInt(playerid, "bPrice"); format(szMessage, sizeof(szMessage), "%s: %d-%d (total %d)", playerVariables[playerid][pNormalName], Numbers[0][playerid], Numbers[1][playerid], Numbers[2][playerid]); nearByMessage(playerid, COLOR_PURPLE, szMessage); format(szMessage, sizeof(szMessage), "%s: %d-%d (total %d)", playerVariables[id][pNormalName], Numbers[0][id], Numbers[1][id], Numbers[2][id]); nearByMessage(playerid, COLOR_PURPLE, szMessage); if(Numbers[2][playerid] > Numbers[2][id]) { playerVariables[playerid][pMoney] += pprice; playerVariables[id][pMoney] -= pprice; format(szMessage, sizeof(szMessage), "%s won this round for $%d.", playerVariables[playerid][pNormalName], pprice); nearByMessage(playerid, COLOR_PURPLE, szMessage); } if(Numbers[2][id] > Numbers[2][playerid]) { playerVariables[playerid][pMoney] -= pprice; playerVariables[id][pMoney] += pprice; format(szMessage, sizeof(szMessage), "%s won this round for $%d.", playerVariables[id][pNormalName], pprice); nearByMessage(playerid, COLOR_PURPLE, szMessage); } if(Numbers[2][id] == Numbers[2][playerid]) { nearByMessage(playerid, COLOR_PURPLE, "Draw!"); } SetPVarInt(playerid, "bID", -1); SetPVarInt(playerid, "bPrice", 0); } else { SCM(playerid, -1, "This player is not below you!"); } } } else SendClientMessage(playerid, COLOR_GREY, "You're too far away from the person offering."); } else SendClientMessage(playerid, COLOR_GREY, "Nobody offered you armour."); } else SendClientMessage(playerid, COLOR_GREY, "Invalid item specified."); } return 1; }
-
Serverul este pe MYSQL,iti trebuie XAMPP instalat pentru a putea porni serverul.Link Tutorial
-
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_DSHIP) { if(response) { ShowPlayerDialog(playerid, DIALOG_DSHIP + 1, DIALOG_STYLE_INPUT, "DealerShip", "Scrie mai jos ID-ul masinii dorite", "Next", "Cancel"); if(dialogid == DIALOG_DSHIP + 1) { if(response) { if(strcmp(params, "411", true) == 0) GiveCar(playerid, Infernus); //Sau cum ai in GM if(strcmp(params, "412", true) == 0) GiveCar(playerid, Voodoo); //Sau cum ai in GM //etc return 1; } } } } CMD:dealership(playerid, params[]) { new dship[2048]; strcat(dship, "(411)Infernus 975.000.000$ t| (412)Voodoo 350.000.000$"); //etc ShowPlayerDialog(playerid, DIALOG_DSHIP, DIALOG_STYLE_MSGBOX, "Buy Vehicle", dship, "Forward", "Cancel"); return 1; }
-
Problema ta are raspuns aici:
Imi pare rau sa te anunt,dar raspunsul pentru problema lui nu e in acel topic.
Raspunsul lui este aici:
Pune aceste 2 coduri in locul celorlalte din GM.
if(listitem == 3) { if(playerVariables[playerid][pCarSelected] == 1) { if(playerVariables[playerid][pInsurancePoints] == 10) { SendClientMessage(playerid, COLOR_ATTACK, "Ai deja 10 puncte de asigurare ."); return 1; } new da[500]; format(da, 500, "Cate puncte de asigurare vrei sa cumperi? $%d / insurance point (%d/10)", playerVariables[playerid][pInsurance],playerVariables[playerid][pInsurancePoints]); ShowPlayerDialog(playerid, 22521, DIALOG_STYLE_INPUT,"Insurance",da,"Ok","Cancel"); } else if(playerVariables[playerid][pCarSelected] == 2) { if(playerVariables[playerid][pInsurancePoints2] == 10) { SendClientMessage(playerid, COLOR_ATTACK, "Ai deja 10 puncte de asigurare ."); return 1; } new da[500]; format(da, 500, "Cate puncte de asigurare vrei sa cumperi? $%d / insurance point (%d/10)", playerVariables[playerid][pInsurance2],playerVariables[playerid][pInsurancePoints2]); ShowPlayerDialog(playerid, 22521, DIALOG_STYLE_INPUT,"Insurance",da,"Ok","Cancel"); } else if(playerVariables[playerid][pCarSelected] == 3) { if(playerVariables[playerid][pInsurancePoints3] == 10) { SendClientMessage(playerid, COLOR_ATTACK, "Ai deja 10 puncte de asigurare ."); return 1; } new da[500]; format(da, 500, "Cate puncte de asigurare vrei sa cumperi? $%d / insurance point (%d/10)", playerVariables[playerid][pInsurance3],playerVariables[playerid][pInsurancePoints3]); ShowPlayerDialog(playerid, 22521, DIALOG_STYLE_INPUT,"Insurance",da,"Ok","Cancel"); } else if(playerVariables[playerid][pCarSelected] == 4) { if(playerVariables[playerid][pInsurancePoints4] == 10) { SendClientMessage(playerid, COLOR_ATTACK, "Ai deja 10 puncte de asigurare ."); return 1; } new da[500]; format(da, 500, "Cate puncte de asigurare vrei sa cumperi? $%d / insurance point (%d/10)", playerVariables[playerid][pInsurance4],playerVariables[playerid][pInsurancePoints4]); ShowPlayerDialog(playerid, 22521, DIALOG_STYLE_INPUT,"Insurance",da,"Ok","Cancel"); } }
if(!isnull(inputtext)) { if(playerVariables[playerid][pInsurancePoints] < playerVariables[playerid][pMaxInsurance]) { new amount = strval(inputtext); if(amount > 10) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Nu poti cumpara mai putin de 1, dar nici mai mult de 10 puncte."); if(playerVariables[playerid][pCarSelected] == 1) { if(amount + playerVariables[playerid][pInsurancePoints] > 10) { SendClientMessage(playerid, -1, "Nu poti detine mai mult de 10 puncte de asigurare."); return 1; } else if(amount >= 0) { new bani = playerVariables[playerid][pInsurance]*amount; if(playerVariables[playerid][pMoney] > bani) { playerVariables[playerid][pInsurancePoints] += amount; playerVariables[playerid][pMoney] -= bani; format(szMessage,256,"Ai cumparat %d puncte de asigurare cu $%s.", amount, NumberFormat(bani)); SCM(playerid,COLOR_ATTACK, szMessage); } else SCM(playerid, -1,"You don't have enought money."); } } else if(playerVariables[playerid][pCarSelected] == 2) { if(amount + playerVariables[playerid][pInsurancePoints2] > 10) { SendClientMessage(playerid, -1, "Nu poti detine mai mult de 10 puncte de asigurare."); return 1; } else if(amount >= 0) { new bani = playerVariables[playerid][pInsurance2]*amount; if(playerVariables[playerid][pMoney] > bani) { playerVariables[playerid][pInsurancePoints2] += amount; playerVariables[playerid][pMoney] -= bani; format(szMessage,256,"Ai cumparat %d puncte de asigurare cu $%s.", amount, NumberFormat(bani)); SCM(playerid,COLOR_ATTACK, szMessage); } else SCM(playerid, -1,"You don't have enought money."); } } else if(playerVariables[playerid][pCarSelected] == 3) { if(amount + playerVariables[playerid][pInsurancePoints3] > 10) { SendClientMessage(playerid, -1, "Nu poti detine mai mult de 10 puncte de asigurare."); return 1; } else if(amount >= 0) { new bani = playerVariables[playerid][pInsurance3]*amount; if(playerVariables[playerid][pMoney] > bani) { playerVariables[playerid][pInsurancePoints3] += amount; playerVariables[playerid][pMoney] -= bani; format(szMessage,256,"Ai cumparat %d puncte de asigurare cu $%s.", amount, NumberFormat(bani)); SCM(playerid,COLOR_ATTACK, szMessage); } else SCM(playerid, -1,"You don't have enought money."); } } else if(playerVariables[playerid][pCarSelected] == 4) { if(amount + playerVariables[playerid][pInsurancePoints4] > 10) { SendClientMessage(playerid, -1, "Nu poti detine mai mult de 10 puncte de asigurare."); return 1; } else if(amount >= 0) { new bani = playerVariables[playerid][pInsurance4]*amount; if(playerVariables[playerid][pMoney] > bani) { playerVariables[playerid][pInsurancePoints4] += amount; playerVariables[playerid][pMoney] -= bani; format(szMessage,256,"Ai cumparat %d puncte de asigurare cu $%s.", amount, NumberFormat(bani)); SCM(playerid,COLOR_ATTACK, szMessage); } else SCM(playerid, -1,"You don't have enought money."); } } } }
Astept raspunsul tau,ma astept sa iti mearga perfect.Cum ti-ai dorit.
- 2
Problema Ciudata
in Arhivă probleme
Posted
Atunci nu inteleg de la ce poate sa fie..
Cred ca o sa caut in liniile alea ce au disparut...Inainte sa le adaug,imi dadea erori cu "GetPlayerHealthx" ..etc 26.Cand am pus liniile lipsa,mia dat astea...