-
Posts
28 -
Joined
-
Last visited
Community Answers
-
xpLode's post in Problema MariaDB MYSQL. was marked as the answer
UPDATE users SET `Team`='3',`Model`='3'(,) WHERE `name`='%s' Virgula din paranteze iti strica tot scriptul. Nu se pune virgula inaintea lui WHERE.
UPDATE users SET `Team`='3',`Model`='3' WHERE `name`='%s'
-
xpLode's post in Problema Functie was marked as the answer
Te folosesti de if.
if(Data[playerid][Level] <= Data[targetid][Level]) SendClientMessage(playerid, -1, "Nu poti modera un admin de acelasi/mai mare grad"); Explicatie: if - daca Data[playerid][Level] - sau cum ai tu in gm(Ex playerVariables[playerid][pAdmin]) este mai mic sau egal decat levelul celuilalt admin atunci ii va da acel mesaj si comanda nu se va aplica asupra acelui admin. Daca folosesti sscanf trebuie sa ai definit in conditie targetid(sau orice) ex: new i, level; if(sscanf(params, "ud", i, level)) etc. Aici i are valoarea lui targetid deci scrii Data[i][Level].
-
xpLode's post in Problema textdraw bugged was marked as the answer
new Text:Logo[MAX_PLAYERS]; Inafara unui public
La ongamemodeinit:
for(new f; f <= MAX_PLAYERS; f++) { Logo[f] = TextDrawCreate(466.179412, 429.333160, "New TextDraw"); TextDrawLetterSize(Logo[f], 0.204025, 2.078334); TextDrawAlignment(Logo[f], 1); TextDrawColor(Logo[f], -1); TextDrawSetShadow(Logo[f], 0); TextDrawSetOutline(Logo[f], 1); TextDrawBackgroundColor(Logo[f], 255); TextDrawFont(Logo[f], 2); TextDrawSetProportional(Logo[f], 1); } La onplayerspawn new string[32]; format(string, 32, "%s /localhost", GetName(playerid)), TextDrawSetString(Logo[playerid] , string), TextDrawShowForPlayer(playerid, Logo[playerid]);