-
Příspěvků
754 -
Registrován
-
Aktivní
-
Vítězných dnů
1
Content Type
Profiles
Forums
Calendar
Gallery
SA-MP
Příspěvky posted by Marley007
-
-
ahojky mám problém s podmínkou u řidičáku...
if (Current == ridicakmenu ) {
switch(row) {
case 0:{
if(GetPlayerMoney(playerid) < 7999) {// nemá peníze
SendClientMessage(playerid, COLOR_RED, "[ ! ] Nemáš peníze [ 8000,- ].");//posle zprávu že nemá prachy
}
if (Ridicak[playerid] == 1) {// ze už má řidičák
SendClientMessage(playerid, COLOR_WHITE, "[ ! ] Už máš řidičák!");//posle zprávu že již má řidičák
}else{//když tyto podmínky splnuje
GivePlayerMoney(playerid,-8000);
SendClientMessage(playerid,COLOR_BLUE,"[ ! ] Projiždej Cheackpointy!");//posle zprávu že dělá test
SetPlayerCheckpoint(playerid,-2047.5912,-83.4838,35.1641,7.0);//Nastaví checkpoint
autoskola[playerid] = Check2;//a když do něj vejde, přejde na další
}
}
}
}
ale ridicak muzu kupovat do nekonečna
-
ježiš tak chudák začíná s pawnem a neví co a jak... no tak se spletl no....
To co píšeš ty spamko? Aspon že si on přečetl pravidla ted ne jak ty
OK můžem toho nechat a tento topic považovat za locknutý...
-
ježiš tak chudák začíná s pawnem a neví co a jak... no tak se spletl no....
já tky začínal a neni to tak dlouho a tímto děkuji kuwesovi a Bagrovi za help pro mě
-
petapl:~/php# apt-get install apache2 php5 mysql-server-4.1 mysql-client-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
php5 is already the newest version.
E: Couldn't find package mysql-server-4.1
-- čtv 25. bře 2010 19:52:01 --
celá chyba
petapl:~/php#
petapl:~/php# apt-get install apache2 php5 mysql-server-4.1 mysql-client-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
php5 is already the newest version.
E: Couldn't find package mysql-server-4.1
petapl:~/php# apt-get install apache2 php5 mysql-server-4.1 mysql-client-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
php5 is already the newest version.
E: Couldn't find package mysql-server-4.1
petapl:~/php#
petapl:~/php# apt-get install apache2 php5 mysql-server-4.1 mysql-client-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
php5 is already the newest version.
E: Couldn't find package mysql-server-4.1
petapl:~/php# apt get install apache2
-bash: apt: command not found
petapl:~/php# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
apache2: Depends: apache2-mpm-worker (>= 2.2.3-4+etch11) but it is not install able or
apache2-mpm-prefork (>= 2.2.3-4+etch11) but it is not instal lable or
apache2-mpm-event (>= 2.2.3-4+etch11) but it is not installa ble
php5: Depends: libapache2-mod-php5 (>= 5.2.6.dfsg.1-1+lenny8) but it is not in stallable or
libapache2-mod-php5filter (>= 5.2.6.dfsg.1-1+lenny8) but it is not installable or
php5-cgi (>= 5.2.6.dfsg.1-1+lenny8) but it is not installable
Depends: php5-common (>= 5.2.6.dfsg.1-1+lenny8) but it is not installabl e
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s olution).
petapl:~/php#
-
ale já nemám balíčky... momentálně ještě chybí Mysql
-- čtv 25. bře 2010 17:47:49 --
reading state information... Done
apache2 is already the newest version.
php5 is already the newest version.
E: Couldn't find package mysql-server-4.1
-
díky,ale nemám ani apache... proto my to nefunguje... potřeboval bych apache v balíčku .deb
už mam
-
-
prosím jak nainstaluji php 5 na PPNI v server ? děkuji za odpovědi
-
ahojky tak jsem tu znovu s errory :
E:\ntbk\rlf.pwn(1407) : error 002: only a single statement (or expression) can follow each "case" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
řádek 1407 není
ale to co je nad nim:
public HowTo() { new Rada = random(17); switch(Rada) { case 0:SendClientMessageToAll(B_SVITZ, "[How To] - Nevis si rady ? Napis [/help]"); case 1:SendClientMessageToAll(B_SVITZ, "[How To] - Navstiv Bloodring derby kousek od Autoskoly v LV!"); case 2:SendClientMessageToAll(B_SVITZ, "[How To] - Zajdi na koncert! Podium naleznes kosek od Pujcovny Lodi v Sellsberry."); case 3:SendClientMessageToAll(B_SVITZ, "[How To] - Zajed si s partou na Drag, pro info [/drag]"); case 4:SendClientMessageToAll(B_SVITZ, "[How To] - Obleceni lze koupit v obchodech Binco a Zip."); case 5:SendClientMessageToAll(B_SVITZ, "[How To] - Krast muzes prikazem [/rob], je tu ovsem velke riziko."); case 6:SendClientMessageToAll(B_SVITZ, "[How To] - Navstiv nas web - [ www.igrania.ic.cz ]"); case 7:SendClientMessageToAll(B_SVITZ, "[How To] - Motokary a motokarovou drahu naleznes na parkovisti v centru mesta."); case 8:SendClientMessageToAll(B_SVITZ, "[How To] - Chces vedet co je v modu noveho? [/news]"); case 9:SendClientMessageToAll(B_SVITZ, "[How To] - Chces si podat inzerat ? Napis [/inzerat text]"); case 10:SendClientMessageToAll(B_SVITZ, "[How To] - Chces podat stiznost ? Zajdi na Mestsky Urad!"); case 11:SendClientMessageToAll(B_SVITZ, "[How To] - Pas si muzes obstarat na Mestskem urade."); case 12:SendClientMessageToAll(B_SVITZ, "[How To] - Autoskolu naleznes v Sellsberry v LV!"); case 13:SendClientMessageToAll(B_SVITZ, "[How To] - Leteckou skolu naleznes na poustnim letisti v Nevade."); case 14:SendClientMessageToAll(B_SVITZ, "[How To] - Jsou na serveru Cheatri a Admini nejsou pritomni? Pouzij [/votekick]"); case 15:SendClientMessageToAll(B_SVITZ, "[How To] - Jdes nachvili pryc ? Dej si [/afk]"); case 16:SendClientMessageToAll(B_SVITZ, "[How To] - Navstiv Internetovou kavarnu a zajdi si na net, muzes si i privydelat."); case 17:SendClientMessageToAll(B_SVITZ, "[How To] - Na parkovisti vedle pyramidy si muzes zajezdit s RC Autickama!");
ten poslední je 1405
P.S. Je to z mtv. jako inspirace ,tak mě nemlaťte ;-) a pls :spam:
-- pát 19. bře 2010 17:59:39 --
opraveno chyběly tam závorky
-
Vela Stastia !!! "lol" "flower"
díky
-- čtv 25. bře 2010 16:40:30 --
Vývoj na 14 dní pozastaven,z důvodu soutěže o nejlepší www školy... (musím se snažit)
také z důvodu sponzoringu jsem získal HYPER server na pipni,tak jsem spustil 2. server samp
1. server 93.185.108.57:7777 (běží mód Las Venturas real life aneb Maikeroo Town2 njn je to lamerský když je mód jenom předělaný,ale je hotový... )
2. server 93.185.108.57:7778 (běží mód reálný život v san andreas (nedodělaný)
díky všem
-
mód už je na serveru. Jsou tam auta,benzin,ridicak a 1 povolani
pořád makám ve spolupráci s kewesem
-
okay... Zatím budu pokračovat... Jsem zvědav,jak to dopadne a kolik errorů mě bude čekat na konci...Potom asi budu potřebovat někoho na opravu módu... Díky za odpovědi
-
je to od tebe hezký... ale mám tam kopu errorů... Psal jsem do helpU. Zatím pokračuju,ale nelíbí se mi to,že se mi tam kopěj errory...
-
oh sorry já zapoměl...
166-178
if(gPlayerHasCitySelected[playerid]) { ClassSel_SetupCharSelection(playerid); return 1; } else { if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) { TogglePlayerSpectating(playerid,1); TextDrawShowForPlayer(playerid, txtClassSelHelper); gPlayerCitySelection[playerid] = -1; } } return 0; }
284-308
ClassSel_SetupCharSelection(playerid) { if(gPlayerCitySelection[playerid] == CITY_LOS_SANTOS) { SetPlayerInterior(playerid,11); SetPlayerPos(playerid,508.7362,-87.4335,998.9609); SetPlayerFacingAngle(playerid,0.0); SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609); SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609); } else if(gPlayerCitySelection[playerid] == CITY_SAN_FIERRO) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,-2673.8381,1399.7424,918.3516); SetPlayerFacingAngle(playerid,181.0); SetPlayerCameraPos(playerid,-2673.2776,1394.3859,918.3516); SetPlayerCameraLookAt(playerid,-2673.8381,1399.7424,918.3516); } else if(gPlayerCitySelection[playerid] == CITY_LAS_VENTURAS) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,349.0453,193.2271,1014.1797); SetPlayerFacingAngle(playerid,286.25); SetPlayerCameraPos(playerid,352.9164,194.5702,1014.1875); SetPlayerCameraLookAt(playerid,349.0453,193.2271,1014.1797); } }
308-348
} //---------------------------------------------------------- // Used to init textdraws of city names ClassSel_InitCityNameText(Text:txtInit) { TextDrawUseBox(txtInit, 0); TextDrawLetterSize(txtInit,1.25,3.0); TextDrawFont(txtInit, 0); TextDrawSetShadow(txtInit,0); TextDrawSetOutline(txtInit,1); TextDrawColor(txtInit,0xEEEEEEFF); TextDrawBackgroundColor(txtClassSelHelper,0x000000FF); } //---------------------------------------------------------- ClassSel_InitTextDraws() { // Init our observer helper text display txtLosSantos = TextDrawCreate(10.0, 380.0, "Los Santos"); ClassSel_InitCityNameText(txtLosSantos); txtSanFierro = TextDrawCreate(10.0, 380.0, "San Fierro"); ClassSel_InitCityNameText(txtSanFierro); txtLasVenturas = TextDrawCreate(10.0, 380.0, "Las Venturas"); ClassSel_InitCityNameText(txtLasVenturas); // Init our observer helper text display txtClassSelHelper = TextDrawCreate(10.0, 415.0, " Press ~b~~k~~GO_LEFT~ ~w~or ~b~~k~~GO_RIGHT~ ~w~to switch cities.~n~ Press ~r~~k~~PED_FIREWEAPON~ ~w~to select."); TextDrawUseBox(txtClassSelHelper, 1); TextDrawBoxColor(txtClassSelHelper,0x222222BB); TextDrawLetterSize(txtClassSelHelper,0.3,1.0); TextDrawTextSize(txtClassSelHelper,400.0,40.0); TextDrawFont(txtClassSelHelper, 2); TextDrawSetShadow(txtClassSelHelper,0); TextDrawSetOutline(txtClassSelHelper,1); TextDrawBackgroundColor(txtClassSelHelper,0x000000FF); TextDrawColor(txtClassSelHelper,0xFFFFFFFF); }
461-464
public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; }
512-515
public OnPlayerInfoChange(playerid) { return 1; }
-
ahojky v mém novém módu my jede jeden error za druhým... už nevím jak co spravit...
zde jsou errory
C:\Documents and Settings\petapl\Plocha\server\pawno\include\../include/gl_common.inc(75) : error 021: symbol already defined: "strtok" F:\rlfinsa.pwn(167) : warning 215: expression has no effect F:\rlfinsa.pwn(284 -- 285) : error 028: invalid subscript (not an array or too many subscripts): "playerid" F:\rlfinsa.pwn(284 -- 286) : error 001: expected token: "}", but found "if" F:\rlfinsa.pwn(308) : warning 209: function "OnPlayerDeath" should return a value F:\rlfinsa.pwn(313) : error 010: invalid function or declaration F:\rlfinsa.pwn(326) : error 010: invalid function or declaration F:\rlfinsa.pwn(329) : error 010: invalid function or declaration F:\rlfinsa.pwn(337) : error 010: invalid function or declaration F:\rlfinsa.pwn(461) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg") F:\rlfinsa.pwn(512) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange") F:\rlfinsa.pwn(612) : warning 203: symbol is never used: "gArmySpawns" F:\rlfinsa.pwn(612) : warning 203: symbol is never used: "gMedicalSpawns" F:\rlfinsa.pwn(612) : warning 203: symbol is never used: "gPoliceSpawns" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors.
teda až na ty poslední 3 warningy Ty chápu,že jsem nepoužil tyto věci...
děkuji
-
děkuji,ale potřebuju někoho,kdo umí s pawnem,aby mi helpnul... Zatím definuju,abych vyzkoušel registraci.
Díky všem co zatím napsali ;-)
-
tak jsem se začal prokousávat,jako začátečník pawnem,mód je křížencem grandlarc a reálný život v san andreas (můj mód) z grandlarcu byly použity fnkce jako:auta,výběr města.do kterého vás to spawne (to se mi hrozně líbilo). Zatím toto bylo vylepšeno o: registraci,login,autoškolu,leteckou školu a zbrojní pas (zatím definuju funkce a hledám errory). Jsem ale totální lama,atak bych potřeboval někoho k ruce. díky Petr
mód má zatím 613 řádků
můj server:
(status)http://www.ntpclan.com/generatory/samp/server-93.185.108.57:7777&style=2.status
zatím las venturas real life (upravený mt2) nechci bejt lama,atak dělám vlastní mód...
93.185.108.57:7777
-
tak jsem to přesunul pryč z command text a 3 errory
D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(30) : error 010: invalid function or declaration D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(474) : error 010: invalid function or declaration D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : error 010: invalid function or declaration D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488) : warning 204: symbol is assigned a value that is never used: "Ridicak" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "cmd" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "dcmd_login" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "gArmySpawns" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "gMedicalSpawns" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "gPoliceSpawns" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(488 -- 518) : warning 203: symbol is never used: "idx" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Errors.
-- čtv 11. bře 2010 19:18:30 --
řádky s chybou
dcmd(login,5,cmdtext);
dcmd(register,8,cmdtext);
//--
dcmd_login(playerid,params[])
{
new cesta[50]; //Vytvoreni stringu na cestu k souboru
format(cesta,50,"LVRLF/%s.dat",Jmeno(playerid)); //Zformatovani cesty k souboru
if(Logged[playerid]) return SendClientMessage(playerid,BARVA,"Uz jsi prihlaseny!"); //Kontrola jestli je hrac prihlasen
if(!dini_Exists(cesta)) return SendClientMessage(playerid,BARVA,"Nejsi registrovany! Registruj se!"); //Kontrola jestli je hrac ubec registrovan
else if(!strcmp(params,dini_Get(cesta,"HESLO"),true)) //Kontrola jestli se shoduji hesla ze souboru a napsaneho hracem
{
Float:X = dini_Float(cesta,"X"); //Precteni pozice X
Float:Y = dini_Float(cesta,"Y"); //Precteni pozice Y
Float:Z = dini_Float(cesta,"Z"); //Precteni pozice Z
Ridicak = dini_Int(cesta,"RIDIC"); //Precteni jestli ma ridicak
Skin = dini_Int(cesta,"SKIN"); //Precteni jaky mel skin
Logged[playerid] = 1; //Nastaveni promene aby byl prihlaseny
SpawnPlayer(playerid); //Spawn hrace
SetPlayerPos(playerid,X,Y,Z); //Nastaveni pozice
SetPlayerSkin(playerid,Skin); //Nastaveni skinu
}
else SendClientMessage(playerid,BARVA,"Hesla se neshoduji!"); //Hrac napsal spatne heslo
//--
dcmd_register(playerid,params[])
{
new cesta[50]; //Vytvoreni stringu na cestu k souboru
format(cesta,50,"Slozka/%s.dat",Jmeno(playerid)); //Zformatovani cesty k souboru
if(Logged[playerid]) return SendClientMessage(playerid,BARVA,"Uz jsi prihlaseny!"); //Kontrola jestli je hrac prihlasen
if(dini_Exists(cesta)) return SendClientMessage(playerid,BARVA,"Uz jsi registrovany! Prihlas se!"); //Kontrola jestli je hrac registrovan
else //Pokud neni registrovany
{
dini_FloatSet(cesta,"X","0"); //Nastaveni pozice X
dini_FloatSet(cesta,"Y","0"); //Nastaveni pozice Y
dini_FloatSet(cesta,"Z","0"); //Nastaveni pozice Z
dini_IntSet(cesta,"RIDIC","0"); //Nastaveni ridicaku
dini_IntSet(cesta,"SKIN","1"); //Nastaveni skinu
SendClientMessage(playerid,BARVA,"Uspesne registrovan!"); //Hlaska o uspesne registraci
dini_Set(cesta,"HESLO",params);
}
return 1;
}
//----------------------------------------------------------
-
dal jsem to tam takhle:
public OnPlayerCommandText(playerid) { new cmd[256]; new idx; cmd = strtok(cmdtext, idx); dcmd(login,5,cmdtext); dcmd(register,8,cmdtext); //-- dcmd_login(playerid,params[])
a teď to píše tohle:
D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : error 029: invalid expression, assumed zero D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : warning 215: expression has no effect D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : error 001: expected token: ";", but found ")" D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : error 029: invalid expression, assumed zero D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(477) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
-
myslíš 475 ?
ten je
dcmd(login,5,cmdtext);
-
¨potřebuju poradit s tímto
D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : error 029: invalid expression, assumed zero
D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : error 029: invalid expression, assumed zero
D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : error 029: invalid expression, assumed zero
D:\Nová složka (2)\Desktop\server\gamemodes\g.pwn(475) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
řádek 475 je toto:
dcmd(login,5,cmdtext);
4 Errors.
-
Ahojky jsem úplně zoufalej. chci vytvářet svůj mód,ale neumím vůbec nic a nenašel jsem na fóru jak začít. Děkuju
skype: administrator_cervicek
podminka ridicak
v Herní (SA:MP, CS apod.)
Odesláno:
C:\Documents and Settings\Petr\Plocha\hypercity.pwn(945) : error 002: only a single statement (or expression) can follow each "case"
C:\Documents and Settings\Petr\Plocha\hypercity.pwn(938) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Petr\Plocha\hypercity.pwn(938 -- 952) : warning 209: function "OnPlayerSelectedMenuRow" should return a value
C:\Documents and Settings\Petr\Plocha\hypercity.pwn(938 -- 953) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Petr\Plocha\hypercity.pwn(938 -- 955) : error 010: invalid function or declaration
C:\Documents and Settings\Petr\Plocha\hypercity.pwn(938 -- 955) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.