-
Posts
171 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by BlueSkiLLz
-
-
bai CookieEatingMonster tu nu esti bun sa editezi un FS dar sa dar sa facu unul
-
hai ca imi place sa mor eu...mai ales palatul
5/5
-
Eu nu am linia OnFilterScriptInit cum fac???? plz help me
nu o ai punetio
public OnFilterScriptInit() {
si sub astea pui ce ai nevoie
-
0/10.
Frumos, pacat ca n-ai fost in stare sa-l copiezi cum trebuie.
Dovada : 1. Aici este tutorialul original facut de catre exDDD
2. De exemplu, eu vreau sa pun 20 de litere max la 'new arth;' va devenii asa .
3. Este exact, exact la fel..
Daca treceai si autorul tutorialul n-aveam nici-o problema, dar asa
nu de acolo lam luat de pe alt site nu dau link fac publicitate
-
nu e facut de el..e facut de Grenade
Dovada aici : http://forum.sa-mp.com/showthread.php?t=45243
-
Tutorial for beginners.
1. Tutorial #include
V-ati gandit vreodata ce face '#include <>' ? Pai sa va explic, in pawno > include exista fisiere de extensia .inc si in acel include exista functii , iar dupa numele extensiei .inc vine #include <numele>.
De exemplu, eu am mysql.inc ca extensie, va fi asa in gamemode :
#include <mysql>
2. Tutorial print V-ati dorit vreodata, ca cand se deschide serverul, sa apara un text in rcon? Simplu cu functia print("text"); , si aceasta o putem pune in comanda, functie orce. De exemplu, eu vreau sa pun ca cand se deschide sa apara textul 'Gamemode loaded.' , simplu bagam asta :print("Gamemode loaded."); // in OnGameModeInit
3. Tutorial Callback V-ati dorit vreodata, sa faceti propria voastra functie (ex: SendClientMessage) ? Simplu, trebuie sa facem asa :forward NumeleFunctiei(playerid, Untext[], Culoarea[]) public NumeleFunctiei(playerid, Untext[], Culoarea[]) { // ce face ea return 1; }
De exemplu, eu vreau sa fac o functie, care trimite mesaj numai cu culoarea alba, facem asa :forward SendClientMessage(playerid, textul[]) public SendClientMessage(playerid, textul[]) { SendClientMessage(playerid, COLOR_WHITE, textul); return 1;l }
Vreti sa facem fara sa mai punem forward? Faceti asa :stock SendClientMessage(playerid, textul[]) { SendClientMessage(playerid, COLOR_WHITE, textul); return 1;l }
WARNING!!Tot ce are legatura cu playerid sau giveplayerid, nu ii trebuie pus '[]' doar celelalte ce nu au legatura. 4. Tutorial Max cifre V-ati gandit vreodata, de ce la 'new strings[256]' exista '[256]' ? Acel cifru [%d] fiind maximum de cifre/litere intr-un format. Tot ce trebuie sa facem e sa punem la sfasit [256]. De exemplu, eu vreau sa pun 20 de litere max la 'new arth;' va devenii asa :new arth[20];
WARNING!!Nu folositi mai mult de 256 max. litere/cifre. 5. Tutorial if V-ati gandit de ce exista 'if' la anumite functii? (ex : if(PlayerInfo[playerid][pLevel] == 10) ) pai simplu, acel if, verifica daca ce exista in (%s) are acel player, daca are il duce spre functiile ce urmeaza, daca nu poate sa se opreasca (return 1;) daca nu poate sa verifice pana are (return 0;). De exemplu, am facut o comanda, vreau ca sa ma verifice daca am lider Police Departament, cum fac? Uite asa :if(PlayerInfo[playerid][pLeader] == 1)
6. Tutorial else V-ati gandit vreodata cum fac ca daca la verificarea functiei, daca acela nu are functia, sa ii trimita un mesaj? Simplu de exemplu avem asta :if(PlayerInfo[playerid][pMember] == 1) { //script... }
Si daca el nu este membru, sa ii trimita mesajul 'Tu nu esti membru Police Departament!' :if(PlayerInfo[playerid][pMember] == 1) { //script... } else { SendClientMessage(playerid, COLOR_GREY, "Tu nu esti membru Police Departament!"); } return 1;
Cam atata am spus ce este mai folositor.
Sper sa foloseasca la ceva.
Cu respect Lucian
-
super 5/5
-
4/5 nu prea imi place.....dar in rest buna treaba macar ai facut o mapa frumusica....
-
si mie miso intamplat asa...problema este ca cred ca tise inchide server....cand iti apare Connected to.... tise inchide.....
problema de rezolvare nu o stiu
-
AngeL=-" post="57148" timestamp="1298657877"]
De unde ai serverul DSK ???
eu incerca sa fac un GM pentru DSK gang war oficial
-
nu merge tot la fel
-
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
a mers copilat dar problema este in felu asta
Script[gamemodes/DSK-Server.amx]: Run time error 17: "Invalid/unsupported P-code file format" Failed to load 'gamemodes/DSK-Server.amx' script.
Ce pot sa fac am incercat sa copy tot din DSK-Server.pwn si sa pun in new.pwn si tot la fel....ce poate sa aiba ceva in am gresit la .pwn .......is new in scripting....si nu stiu......eu l-am facut server.....
-
a mers multumesc FarSe
-
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK\gamemodes\DSK-Server.pwn(112) : error 020: invalid symbol name ""
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK\gamemodes\DSK-Server.pwn(126) : error 017: undefined symbol "PlayerInfo2"
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK\gamemodes\DSK-Server.pwn(126) : warning 215: expression has no effect
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK\gamemodes\DSK-Server.pwn(126) : error 001: expected token: ";", but found "]"
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK\gamemodes\DSK-Server.pwn(126) : error 029: invalid expression, assumed zero
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK\gamemodes\DSK-Server.pwn(126) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
112
new Text:PlayerInfo2[200];#if defined PLAYER_INFO new Text:PlayerInfo2[200]; #endif
126PlayerInfo2 = TextDrawCreate(10.0000, 425.0000," ");#if defined PLAYER_INFO for(new i=0;i<200;i++){ PlayerInfo2[i] = TextDrawCreate(10.0000, 425.0000," "); // 10.0000, 425.0000 TextDrawFont(Text:PlayerInfo2[i],3); TextDrawLetterSize(PlayerInfo2[i],0.4,1.5); TextDrawAlignment(PlayerInfo2[i],0);} #endif
Va rog sa ma ajutati iarasi
-
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
a mers multumesc pentru ajutor la toti mai ales lui Vyorel
-
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\USA.pwn(19) : fatal error 100: cannot read from file: "ret_memcpy"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Daca o sterg imi apare asa
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\USA.pwn(781) : error 017: undefined symbol "string"
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\USA.pwn(782) : error 017: undefined symbol "string"
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\USA.pwn(1080) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Linile 781 si 782
format(string,256, "Kills: [%d] Deaths: [%d] Money: [%d] ",Kills,Deaths,GetPlayerMoney(playerid)); SendClientMessage(playerid,0xFFFFFFAA,string);
Va rog sa ma ajutati si pe mine
-
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(101) : error 052: multi-dimensional arrays must be fully initialized D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(161) : error 029: invalid expression, assumed zero D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(189) : error 052: multi-dimensional arrays must be fully initialized D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(557) : error 017: undefined symbol "TurfInfo" D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(557) : warning 215: expression has no effect D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(557) : error 001: expected token: ";", but found "]" D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(557) : error 029: invalid expression, assumed zero D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(557) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors.
nicio diferenta la fel mersi oricum
-
D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(101) : error 029: invalid expression, assumed zero D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(101) : error 008: must be a constant expression; assumed zero D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(161) : error 029: invalid expression, assumed zero D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(188) : error 029: invalid expression, assumed zero D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(188) : error 008: must be a constant expression; assumed zero D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(553) : error 017: undefined symbol "TurfInfo" D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(553) : warning 215: expression has no effect D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(553) : error 001: expected token: ";", but found "]" D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(553) : error 029: invalid expression, assumed zero D:\G@MES (Lucianâ„¢)\GTA San Andreas\DSK-Server\gamemodes\DSK-Server.pwn(553) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 9 Errors.
Linia 101new TeamInfo[ MAX_TEAMS ][ teaminfo ]= { { "Aztecas", AZTECAS_COLOR, 0, 0, 0, 0, 0}, { "Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0}, { "Ballas", BALLAS_COLOR, 0, 0, 0, 0, 0}, { "Grove", GROVE_COLOR, 0, 0, 0, 0, 0}, { "DSK", DSK_COLOR, 0, 0, 0, 0, 0}, };
linia 161new Float:checkCoords[ MAX_POINTS ][ 4 ] = { { 284.2472, -41.8122, 300.0394, -31.2338 }, //AMMUNATION { 284.0852, -112.7093, 298.1693, -102.9225 } //AMMUNATION_2
linia 188"M4", "Sniper Rifle", };
linia 553for (new t=0; t<MAX_TURFS; t++) { GangZoneCreate( turfs[ t ][zMinX], turfs[ t ][zMinY], turfs[ t ][zMaxX], turfs[ t ][zMaxY] ); for (new teams=0; teams<MAX_TEAMS; teams++) TurfInfo[ t ][ teams ][ MIT ]=0; }
Va rog sa ma ajutati.
-
=-" post="56098" timestamp="1298233550"]
chiar esti bun nu gluma la ceea ce faci...cum zicea si colegul de mai sus pacat ca te lasi.
-
nu e cine stie...3/5
Ora
in Arhivă probleme
Posted
la asta mam gandit si eu...dar este un Fs care iti apare ora ta din locatia ta adik tu esti din America iti apare ora ta eu sunt din Romania imi apare ora mea
Si eu vreau sa aflu acest FS