EterNo
-
Posts
6 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by EterNo
-
-
mie cu spatiu imi dadea errori acuma depinde si de gm:)
-
Pentru ca odata ce un text este aratat, cel care este aratat pe moment v-a disparea si v-a face loc celuilalt.
Asa ca , pentru o linie noua folosesti ~n~ in cod.
Exemplu:
GameTextForPlayer( playerid, "GameText test.~n~Linia2~n~Linia3~n~Linia4~n~Linia5.", 3000, 5 );
Vezi ca ai gresit la "GameTextForPlayer( playerid" ai pus spatiu , Dai T/C am inteles , ms .
P.S : Cei care luati errori de genul "undefined symbol playerid" puneti "i" la "playerid"
-
Am vazut pe un server un GameTextForPlayer asemanator cu acesta :
Am incercat sa fac si eu cu
else if (PlayerToPoint(3, i,691.5751,-1275.8918,13.5607)) { GameTextForPlayer(i, "~g~VLA TRAINING PLACE, 5", 3000, 5); GameTextForPlayer(i, "~y~USE /ENTER", 3000, 5); GameTextForPlayer(i, "USE /EXIT TO EXIT", 3000, 5); }
Nu functioneaza imi arata doar ultimul GameText ..:-w
-
Nu. Acolo doar ~r~ ~g~ ~b~ ~y~ ~p~ ...
Dar poti deschide o culoare cu ~h~
Exemplu:
Deschis
~r~~h~
~r~~h~~h~
Si mai deschis
Daca tot repeti ~h~ devine alb.
Aha nu stiam ca cu ~h~ se face mai deschisa culoarea de obicei cand puneam ~l~ adica negru nu se intelegea nimic , ms !
-
Merge si la "GameTextForPlayer" ?
problema 6 warns
in Arhivă probleme
Posted
Am niste warning-uri care nu le pot rezolva deloc sper sa ma puteti ajuta voi .
Primu warning :
[pawn] WantedPoints[playerid]+=20; SetPlayerCriminal(playerid,255, "Jefuieste banca orasului");
GameTextForPlayer(playerid, "~r~Ai jefuit banca", 2500, 1);
DisablePlayerCheckpoint(playerid);
SetPlayerWantedLevel(playerid, 10);
WantedPoints[playerid]+= 21;
CP[playerid] = 51;
SetPlayerCheckpoint(playerid, 2125.1970,-1259.6982,24.1090); // ASTA ESTE LINIA
SendClientMessage(playerid, COLOR_YELLOW, "Acum dute la depozit pentru a lua bani.");
BizzInfo[4][bProducts] -= 25;
new pName[24];
new str[128];
GetPlayerName(playerid, pName, 24);
format(str, 128,"Banca a fost jefuita de %s, toate unitatile in alerta !", pName);
SendClientMessageToAll(COLOR_RED, str);[/pawn]
Warning 2 : [pawn] }
}
if(newcar==180|newcar==181||newcar==182||newcar==183||newcar==184||newcar==185||newcar==186) // asta e linia ( 2 warning-uri pe aceasta linie )
{
if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { }
else
{
SendClientMessage(playerid,0x806C28FF," You are not a member of The Triads !");[/pawn]
Warining 4 :
[pawn] new warns = PlayerInfo[targetid][pWarns];
new pboxmats = PlayerInfo[targetid][pBoxMats]; // asta e linia
new pboxdrugs = PlayerInfo[targetid][pBoxDrugs];[/pawn]
Warning 5 :
[pawn] PlayerInfo[playerid][pMats] -= matss;
PlayerInfo[playerid][pBoxMats] += matss; // asta e linia.[/pawn]
Warning 6 :
[pawn] SendClientMessage(playerid, COLOR_GRAD2, "USAGE: Materiale [amount]");
format(string, sizeof(string), "Ai %d materiale in depozit.", // asta e linia PlayerInfo[playerid][pBoxMats]);[/pawn]