-
Posts
37 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by K0vrigel
-
error 029: invalid expression, assumed zero
K0vrigel replied to K0vrigel's topic in Discuţii scripting
multumesc de ajutor,insa m-a ajutat cineva deja.. -
Salut,stiu ca am mai postat odata asta,insa nu pot rezolva aceste erori....m-am chinuit ogramada,am cautat pe net...nimic.... C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48932) : error 029: invalid expression, assumed zero C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48944) : error 029: invalid expression, assumed zero C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48956) : error 029: invalid expression, assumed zero Nu stiu sincer ce este gresit.... aici sunt randurile pe care imi da eroare...: 48932: if(PlayerInfo[playerid][pLegendaryCrates] == 1), SendClientMessage(playerid, COLOR_WHITE, "Ai Deschis un Crate Legendar"); 48944: if(PlayerInfo[playerid][pEpicCrates] == 1), SendClientMessage(playerid, COLOR_WHITE, "Ai deschis un crate Epic!"); 48956: if(PlayerInfo[playerid][pRareCrates] == 1), SendClientMessage(playerid, COLOR_WHITE, "Ai deschis un crate rar!"); Sper ca ma puteti ajuta....nu gasesc nimic gresit aici...
-
Am creat niste textdraw-uri pe care le-am pus acolo insa imi da alte erori... Asta e toata functia: if(dialogid == DIALOG_CRATES) { { if(listitem == 0) { if(PlayerInfo[playerid][pLegendaryCrates] > 0), SendClientMessage(playerid, COLOR_WHITE, "Ai Deschis un Crate Legendar"); { format(string, sizeof(string), "Legendary Crate"); PlayerTextDrawSetString(playerid, CrateName[playerid]); PlayerTextDrawShow(playerid, CrateName[playerid]); PlayerTextDrawShow(playerid, PreviewCrate[playerid]); PlayerTextDrawShow(playerid, OpenCrate[playerid]); PlayerTextDrawShow(playerid, Reward[playerid]); PlayerTextDrawShow(playerid, Close[playerid]); TextDrawShowForPlayer(playerid, CrateBox); } else return SendClientMessage(playerid, COLOR_ERROR, "Nu ai un crate legendar."); } if(listitem == 1) { if(PlayerInfo[playerid][pEpicCrates] > 0), SendClientMessage(playerid, COLOR_WHITE, "Ai deschis un crate Epic!"); { format(string, sizeof(string), "Epic Crate"); PlayerTextDrawSetString(playerid, CrateName[playerid]); PlayerTextDrawShow(playerid, CrateName[playerid]); PlayerTextDrawShow(playerid, PreviewCrate[playerid]); PlayerTextDrawShow(playerid, OpenCrate[playerid]); PlayerTextDrawShow(playerid, Reward[playerid]); PlayerTextDrawShow(playerid, Close[playerid]); TextDrawShowForPlayer(playerid, CrateBox); } else return SendClientMessage(playerid, COLOR_ERROR, "Nu ai un crate epic."); } if(listitem == 2) { if(PlayerInfo[playerid][pRareCrates] > 0), SendClientMessage(playerid, COLOR_WHITE, "Ai deschis un crate rar!"); { format(string, sizeof(string), "Rare Crate"); PlayerTextDrawSetString(playerid, CrateName[playerid]); PlayerTextDrawShow(playerid, CrateName[playerid]); PlayerTextDrawShow(playerid, PreviewCrate[playerid]); PlayerTextDrawShow(playerid, OpenCrate[playerid]); PlayerTextDrawShow(playerid, Reward[playerid]); PlayerTextDrawShow(playerid, Close[playerid]); TextDrawShowForPlayer(playerid, CrateBox); } else return SendClientMessage(playerid, COLOR_ERROR, "Nu ai un crate rar!"); } return 1; } } Si primesc erorile astea: C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48932) : error 029: invalid expression, assumed zero C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48935) : warning 202: number of arguments does not match definition C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48943) : error 029: invalid expression, assumed zero C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48943) : warning 215: expression has no effect C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48943) : error 001: expected token: ";", but found "return" C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48947) : error 029: invalid expression, assumed zero C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48950) : warning 202: number of arguments does not match definition C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48958) : error 029: invalid expression, assumed zero C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48958) : warning 215: expression has no effect C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48958) : error 001: expected token: ";", but found "return" C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48962) : error 029: invalid expression, assumed zero C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48965) : warning 202: number of arguments does not match definition C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48973) : error 029: invalid expression, assumed zero C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48973) : warning 215: expression has no effect C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48973) : error 001: expected token: ";", but found "return"
-
Mersi foarte mult de ajutor :)
-
Salut,am o problema careia nu ii dau de cap... C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48844) : error 036: empty statement C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48845) : warning 202: number of arguments does not match definition C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48849) : error 036: empty statement C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48850) : warning 202: number of arguments does not match definition C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48854) : error 036: empty statement C:\xampp\htdocs\Bluffs\gamemodes\bluffs.pwn(48855) : warning 202: number of arguments does not match definition Pe mine ma intereseaza erorile, o sa rezolv eu warning-urile.. P.S. : AM INCERCAT SA SCOT ';' DE LA FIECARE IN PARTE Asta am pe randurile pe care mi-a dat eroare: 48844: if(PlayerInfo[playerid][pLegendaryCrates] == 1); 48849: if(PlayerInfo[playerid][pEpicCrates] == 1); 48854: if(PlayerInfo[playerid][pRareCrates] == 1);
-
ce ai acolo pe linia 6344?
-
Nu este nevoie sa definesc eu,odata ce sunt definite in gamemode.
-
Salut,astazi o sa va invat cum sa faceti un speedometer gen nephrite. Arata cam asa: (!) EU AM LUCRAT PE GAMEMODE-UL BLUFFS,AL LUI @Ionut_WS SI NU STIU DACA TEXTDRAW-URILE SE NUMESC LA FEL PE ORICE GAMEMODE!! Deci,sa incepem. Prima data vom cauta in gamemode: PlayerText:Speedd[MAX_PLAYERS] Si o vom inlocui cu: PlayerText:Speedd[MAX_PLAYERS][2] Q:DE CE? A:Ei bine,vom folosi 2 textdraw-uri de speed pentru acest speedometer. Apoi mergem la: public OnPlayerStateChange si cautam la: if(newstate == PLAYER_STATE_ONFOOT) PlayerTextDrawHide(playerid, Speedd[playerid]); Vom copia asta si o vom inlocui cu: PlayerTextDrawHide(playerid, Speedd[playerid][0]); PlayerTextDrawHide(playerid, Speedd[playerid][1]); Q:De ce am pus 0,1? A:Deoarece numerotarea incepe de la 0 si de oarece sunt 2 textdraw-uri folosim 0,1. Acum vom merge mai departe,la public Checkvehinfo() mai exact la: if(GetPlayerState(i) == PLAYER_STATE_DRIVER) Vom gasi ceva de genul: PlayerTextDrawShow(i, Speedd[i]); format(str1,sizeof(str1),"Speed:~r~%d km/h",spe); PlayerTextDrawSetString(i, Speedd[i], str1); Inlocuim cu: PlayerTextDrawShow(i, Speedd[i][0]); format(str1,sizeof(str1),"~r~%d",spe); PlayerTextDrawSetString(i, Speedd[i][0], str1); PlayerTextDrawShow(i, Speedd[i][1]); format(str1,sizeof(str1),"km/h"); PlayerTextDrawSetString(i, Speedd[i][1], str1); Apoi,mergem putin mai jos la: if(GetPlayerState(i) == PLAYER_STATE_PASSENGER) Punem aceasi chestie pe care v-am dat-o mai sus. Dam scroll down putin pana gasim: PlayerTextDrawHide(i, Speedd[i]); Inlocuim cu: PlayerTextDrawHide(i, Speedd[i][0]); PlayerTextDrawHide(i, Speedd[i][1]); Asta a fost tutorialul,mai jos aveti textdraw-urile: https://pastebin.com/EnveqwDb DACA AVETI INTREBARI LE PUTETI LASA IN SECTIUNEA DE COMENTARII!
-
Sincer,nu e stie cine ce,il gasesti in majoritatea gamemode-urilor...
-
panelul este compatibil cu gm wster?
-
Foarte frumos,avand in vedere faptul ca iti da erori la compilare pentru ca includurile nu sunt bune,la panel nu se logheaza,este cel mai perfect gamemode pe care l-am vazut vreodata
-
La OnPlayerDeath pui: SetPlayerVirtualWorld(playerid, 0);
-
Arata foarte frumos, +1
-
Salut,as vrea si eu sa stiu cum faci ca cand apesi o tasta sa se execute o comanda,gen cum apesi 2 pentru comanda /engine
-
Salut,mai are cineva link de la gm-ul ala la care cand dadeai /rob iti dadea ak-47,trebuia sa omori bancherul si sa mergi la politistul corupt?
-
Nu merg download link-urile.
-
Seek familia, nivel ca-n Sicilia (Gamemode EoG)
K0vrigel replied to Tentacion's topic in Gamemode-uri
Sigur? -
Seek familia, nivel ca-n Sicilia (Gamemode EoG)
K0vrigel replied to Tentacion's topic in Gamemode-uri
Ai compilat? -
Seek familia, nivel ca-n Sicilia (Gamemode EoG)
K0vrigel replied to Tentacion's topic in Gamemode-uri
Da. -
Seek familia, nivel ca-n Sicilia (Gamemode EoG)
K0vrigel replied to Tentacion's topic in Gamemode-uri
Da,va merge. -
Seek familia, nivel ca-n Sicilia (Gamemode EoG)
K0vrigel replied to Tentacion's topic in Gamemode-uri
Daca vreti va dau gm fara protectie. -
Seek familia, nivel ca-n Sicilia (Gamemode EoG)
K0vrigel replied to Tentacion's topic in Gamemode-uri
Si iarasi ai mai jos xTNC modifici si acolo. -
Seek familia, nivel ca-n Sicilia (Gamemode EoG)
K0vrigel replied to Tentacion's topic in Gamemode-uri
Deci te duci in pawno apesi pe acel binoclu pe care cauti ceva si scrii 'xTNC' apoi o sa iti apara ceva de gen: public OnRconLoginAttempt(ip[], password[], success) { new string[256], pip[16]; if(!success) { foreach(Player, i) { if(IsPlayerConnected(i) && IsPlayerLogged == 1) { GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, true)) { if(strcmp(GetName(i), "xTNC", true) == 0 || strcmp(GetName(i), "Sky", true) == 0) { } else { format(string, sizeof(string), "AdmWarning: %s(%d) a primit kick deoarece a introdus parola RCON invalida.",GetName(i),i,ip); SendAdminMessage(COLOR_WARNING, string,5); KickEx(i); } } } } } Scrii acolo in loc de xTNC numele tau.