Wysłany: 2009-07-10, 19:02
xqz
otaku desu!
Wiek: 32 Na forum: 6503 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
H2S04 , usun Angle.
musi byc X,y,Z a nie X,y,Z,A
Kod:
public OnPlayerCommandText(playerid, cmdtext[])
{
// komenda otwieraj?ca bram?
if (strcmp(cmdtext, "/brama.otworz", true)== 0 && IsPlayerAdmin(playerid)) {
MoveObject(brama,1889.5026, 1104.3534, 18.1014, 2);
GameTextForPlayer(playerid, "~g~Brama zostala otwarta!", 3000, 1);
SendClientMessage(playerid, 0x007700FF, "Otwierasz bram?.");
return 1;
}
// komenda zamykaj?ca bram?
if (strcmp(cmdtext, "/brama.zamknij", true)== 0 && IsPlayerAdmin(playerid)) {
MoveObject(brama,1889.478, 1104.3469, 12.5231, 2);
GameTextForPlayer(playerid, "~g~Brama zosta?a zamkni?ta!", 3000, 1);
SendClientMessage(playerid, 0x007700FF, "Zamykasz bram?");
return 1;
}
VVVVVVVVVVVVVVVVVVVVV to te na dole VVVVVVVVVVVVVVVVVVVVV
// komenda dzi?ki kt?rej winda jedzie w g?re
if (strcmp(cmdtext, "/winda.gora", true)== 0 && IsPlayerAdmin(playerid)) {
MoveObject(winda,1871.7419, 1178.967, 17.0699,2);
GameTextForPlayer(playerid, "~g~Brama zostala otwarta!", 3000, 1);
SendClientMessage(playerid, 0x007700FF, "Otwierasz bram?.");
return 1;
}
// komenda dzi?ki kt?rej winda jedzie w d??
if (strcmp(cmdtext, "/winda.do?", true)== 0 && IsPlayerAdmin(playerid)) {
MoveObject(winda,1871.7244, 1178.9111, 9.8703, 2);
GameTextForPlayer(playerid, "~g~Brama zosta?a zamkni?ta!", 3000, 1);
SendClientMessage(playerid, 0x007700FF, "Zamykasz bram?");
return 1;
}
return 0;
}
Wysłany: 2009-07-16, 13:14
Jarol15boss
Wiek: 31 Na forum: 6871 dni Posty: 12
Nick w MP: Ralph Clanton
Piwa : 125
C:\Documents and Settings\W?a?ciciel\Pulpit\us_rp\US_RP\gamemodes\mojamapka.pwn(8596) : warning 215: expression has no effect
C:\Documents and Settings\W?a?ciciel\Pulpit\us_rp\US_RP\gamemodes\mojamapka.pwn(8614) : warning 215: expression has no effect
C:\Documents and Settings\W?a?ciciel\Pulpit\us_rp\US_RP\gamemodes\mojamapka.pwn(16660) : warning 225: unreachable code
Co z tym zrobi? ?
Wysłany: 2009-07-16, 13:15
Matimor
PAWN Maniak :D
Wiek: 36 Na forum: 6541 dni Posty: 19
Piwa : 1076
Wysłany: 2009-07-16, 16:15
zulek[PL]
Wiek: 36 Na forum: 6782 dni Posty: 39
Piwa : 560
Siema mam problem juz reaz pisa?em w tej sprawie na forum ale nie doste?em odpowidzi z jej rozwi?zaniem pobieram nowe PAWNO z gtaonline itp z all i mam taki b?ad jak biore F5 na karzdej mapie i nie wiem czym moze to by? spowodowane CODE
Kod: Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Usage: pawncc <filename> [filename...] [options]
Options:
-A<num> alignment in bytes of the data segment and the stack
-a output assembler code
-C[+/-] compact encoding for output file (default=+)
-c<name> codepage name or number; e.g. 1252 for Windows Latin-1
-Dpath active directory path
-d<num> debugging level (default=-d1)
0 no symbolic information, no run-time checks
1 run-time checks, no symbolic information
2 full debug information and dynamic checking
3 same as -d2, but implies -O0
-e<name> set name of error file (quiet compile)
-H<hwnd> window handle to send a notification message on finish
-i<name> path for include files
-l create list file (preprocess only)
-o<name> set base name of (P-code) output file
-O<num> optimization level (default=-O1)
0 no optimization
1 JIT-compatible optimizations only
2 full optimizations
-p<name> set name of "prefix" file
-r[name] write cross reference report to console or to specified file
-S<num> stack/heap size in cells (default=4096)
-s<num> skip lines from the input file
-t<num> TAB indent size (in character positions, default=8)
-v<num> verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
-w<num> disable a specific warning by its number
-X<num> abstract machine size limit in bytes
-XD<num> abstract machine data/stack size limit in bytes
-\ use '\' for escape characters
-^ use '^' for escape characters
-;[+/-] require a semicolon to end each statement (default=+)
-([+/-] require parantheses for function invocation (default=+)
sym=val define constant "sym" with value "val"
sym= define constant "sym" with value 0
Options may start with a dash or a slash; the options "-d0" and "/d0" are
equivalent.
Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.
Podpis
Lubie podkręcać ludzi w samp.
A ich ego wtedy spada do dna
Wysłany: 2009-07-16, 17:40
xqz
otaku desu!
Wiek: 32 Na forum: 6503 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
Wysłany: 2009-07-18, 17:14
zulek[PL]
Wiek: 36 Na forum: 6782 dni Posty: 39
Piwa : 560
Ten link co da?e? nie dzia?a
Podpis
Lubie podkręcać ludzi w samp.
A ich ego wtedy spada do dna
Wysłany: 2009-07-24, 11:13
kaminiak
Były Head Admin Psr24.pl
Wiek: 33 Na forum: 6387 dni Posty: 46
Nick w MP: [PSR]Kaminiak
Piwa : 47
Wysłany: 2009-07-24, 11:16
Michalec
Dokładnie.
Wiek: 30 Na forum: 6502 dni Posty: 163
Nick w MP: []Damianos[]
Piwa : 99
Na g?rze napisz :
Kod: #define COLOR_BLACK 0x000000FF
I tamto nome na name zamie?
Wysłany: 2009-07-24, 13:54
PiotrekBJS
-.O
Wiek: 36 Na forum: 6471 dni Posty: 27
Nick w MP: Drift, Sixer
Piwa : 5
A ja mam pytanie jak zrobi? skrypt taki ?e gracz mo?e zmienia? sobie kolor - nicku i znaczka na mapie . Potrzebny mi taki do skryptu walk 2 dru?yn Plis o pomoc .
Podpis
Wracam do sampa po 2 latach ;D
Wysłany: 2009-07-24, 14:00
The Psychol
Psychol
Wiek: 35 Na forum: 6871 dni Posty: 2822
Nick w MP: The_Psychol
Piwa : 4390
Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
Podpis
And that's the bottom line 'cause The Psychol said so!
Wysłany: 2009-07-24, 18:06
kaminiak
Były Head Admin Psr24.pl
Wiek: 33 Na forum: 6387 dni Posty: 46
Nick w MP: [PSR]Kaminiak
Piwa : 47
Kod: Z:\Users\Piotrek\Desktop\(Head Admin).pwn(26) : error 017: undefined symbol "name"
Z:\Users\Piotrek\Desktop\(Head Admin).pwn(28) : error 017: undefined symbol "COLOR_BLACK"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
A to ca?y skrypt:
Kod: #include <a_samp>
#if defined FILTERSCRIPT
#define COLOR_BLACK 0x000000FF
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerSpawn(playerid)
{
if(strfind(name(playerid),"[PSR]_Kam_[H][P]",true) != -1)
{
SetPlayerColor(playerid,COLOR_BLACK);
}
return 1;
}
Podpis
www.Psr24.pl
91.204.163.105:9390
Wysłany: 2009-07-24, 19:00
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6700 dni Posty: 265
Piwa : 3264
Kod: #include <a_samp>
#define COLOR_BLACK 0x000000FF
new name[MAX_PLAYER_NAME];
public OnPlayerSpawn(playerid)
{
GetPlayerName(playerid, name, sizeof name);
if(strcmp(name, "[PSR]_Kam_[H][P]", true) != -1)
SetPlayerColor(playerid, COLOR_BLACK);
return 1;
}
#if defined [] - JE?LI ZDEFINIOWANY (warunek)! Nie zdefiniowa?e? "FILTERSCRIPT", wi?c kompilator nie uznawa? tego, co by?o w warunku. Poza tym nie zdefiniwa?e? 'name' i nie pobra?e? nicku.
Wysłany: 2009-07-24, 20:03
kaminiak
Były Head Admin Psr24.pl
Wiek: 33 Na forum: 6387 dni Posty: 46
Nick w MP: [PSR]Kaminiak
Piwa : 47
Kod: Z:\Users\Piotrek\Desktop\(Head Admin).pwn(13) : error 017: undefined symbol "text"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
LINIJKA 13:
Kod: format(str, sizeof(str), "(Head Admin): %s", text);
Poprostu nie wiem jak zdefiniowa? "text"
Podpis
www.Psr24.pl
91.204.163.105:9390
Wysłany: 2009-07-24, 20:31
Michalec
Dokładnie.
Wiek: 30 Na forum: 6502 dni Posty: 163
Nick w MP: []Damianos[]
Piwa : 99
Normalnie Gdzie masz to wpisane ? Pewnie w OnPlayerText Zamie? to twoje na to :
Kod: public OnPlayerText(playerid, text[])
Wysłany: 2009-07-25, 01:18
kaminiak
Były Head Admin Psr24.pl
Wiek: 33 Na forum: 6387 dni Posty: 46
Nick w MP: [PSR]Kaminiak
Piwa : 47
Kod: Z:\Users\Piotrek\Desktop\Mapa Golfa\xObiektM.pwn(3) : warning 219: local variable "a" shadows a variable at a preceding level
Z:\Users\Piotrek\Desktop\Mapa Golfa\xObiektM.pwn(774) : error 029: invalid expression, assumed zero
Z:\Users\Piotrek\Desktop\Mapa Golfa\xObiektM.pwn(774) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
LINIJKA 774:
Kod:
Linijka 3:
Kod:
Podpis
www.Psr24.pl
91.204.163.105:9390
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: