Wysłany: 2011-05-26, 19:15
naemarq
Wiek: 38 Na forum: 6242 dni Posty: 16
: warning 217: loose indentation
(9109) : warning 217: loose indentation
(9196) : warning 217: loose indentation
(9466) : warning 217: loose indentation
(9489) : warning 217: loose indentation
(15750) : error 017: undefined symbol "strrest"
(15750) : error 033: array must be indexed (variable "String")
(16204) : error 017: undefined symbol "strrest"
(16204) : error 033: array must be indexed (variable "BReason")
(19415) : error 017: undefined symbol "strrest"
(19415) : error 033: array must be indexed (variable "Reason")
(20452) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Wysłany: 2011-05-26, 19:20
Przemas95
Wiek: 31 Na forum: 5633 dni Posty: 21
Nick w MP: Jankes
Piwa : 807
no i co to ma byc? mo?e dasz kod?
Wysłany: 2011-05-26, 19:41
MG303
Wiek: 30 Na forum: 6419 dni Posty: 654
Piwa : 2990
naemarq , ja chcia?em kod, a nie errory
Wysłany: 2011-05-26, 19:46
naemarq
Wiek: 38 Na forum: 6242 dni Posty: 16
tzn te linijki w kt?rych s? b??dy
Wysłany: 2011-05-26, 20:00
MG303
Wiek: 30 Na forum: 6419 dni Posty: 654
Piwa : 2990
naemarq , tak, oraz troch? linijek wzwy? i w d??
Wysłany: 2011-05-26, 20:11
naemarq
Wiek: 38 Na forum: 6242 dni Posty: 16
Kod: (15750) : error 017: undefined symbol "strrest"
(15750) : error 033: array must be indexed (variable "String")
if(MyStrCmp(Func, "create"))
{
String = strrest(params, idx);
if(strlen(String) < 1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wpisz: /gang create [nazwa gangu]");
return 1;
}
(16204) : error 017: undefined symbol "strrest"
(16204) : error 033: array must be indexed (variable "BReason")
else
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wpisz: /ban [id gracza] [\"konto\"/\"ip\"/\"host\"] [pow?d]");
return 1;
}
new BReason[255];
BReason = strrest(params, idx);
if(strlen(BReason) < 1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wpisz: /ban [id gracza] [\"konto\"/\"ip\"/\"host\"] [pow?d]");
return 1;
}
if(!BanPlayer(PlayerId, BReason, BType, playerid))
(19415) : error 017: undefined symbol "strrest"
(19415) : error 033: array must be indexed (variable "Reason")
COMMAND:blackadd(playerid, params[])
{
if(!IsAdmin(playerid))
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Komenda dost?pna tylko dla administratora.");
return 1;
}
new PlayerName[255], Reason[255], idx;
PlayerName = strtok(params, idx);
Reason = strrest(params, idx);
if(strlen(PlayerName) < 1 || strlen(Reason) < 1)
{
SendClientMessage(playerid, COLOR_ERROR, " (b??d) Wpisz: /blackadd [nick] [pow?d]");
return 1;
}
Wysłany: 2011-05-26, 23:24
BraYaN_
Wiek: 34 Na forum: 6603 dni Posty: 276
Nick w MP: BraYaN_
Piwa : 1614
naemarq , przecie? mia?e? ju? podane...
Kod: stock strrest(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
wklej gdzie? do mapy.
Wysłany: 2011-05-27, 17:40
DemonGoldHedy
Wiek: 31 Na forum: 5634 dni Posty: 1
Nick w MP: [TMU]Ilumino
No ja mam taki problemik :
Kod: C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1389) : error 017: undefined symbol "SetPVarInt"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1448) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1449) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1450) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1451) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1452) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1453) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1454) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1455) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1456) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1457) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1458) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1459) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1460) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1461) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1462) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1463) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1464) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1465) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1466) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1467) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1468) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1469) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1470) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1471) : error 017: undefined symbol "MAPICON_GLOBAL"
C:\Documents and Settings\Bartek\Pulpit\mapaptz.pwn(1472) : error 017: undefined symbol "MAPICON_GLOBAL"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Wysłany: 2011-05-27, 20:00
BraYaN_
Wiek: 34 Na forum: 6603 dni Posty: 276
Nick w MP: BraYaN_
Piwa : 1614
DemonGoldHedy , ?ci?gnij najnowsze includy.
Wysłany: 2011-06-10, 22:49
gruszex
Wiek: 28 Na forum: 6038 dni Posty: 53
Piwa : 10
Kod: #include <a_samp>
#define COLOR_GREEN 0x33AA33AA
new brama;
public OnGameModeInit()
{
brama = CreateObject(980,115,1811.6736,-1889.3163,13.4141,90.3659);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/brama.o", true) == 0)
{
MoveObject(brama, 115,1811.4442,-1906.5715, 17.2240);
SendClientMessage(playerid, COLOR_GREEN, "brama si? otwiera");
return 1;
}
if(strcmp(cmdtext, "/brama.z", true) == 0)
{
MoveObject(brama, 115,1811.7610,-1889.5732, 13.4141);
SendClientMessage(playerid, COLOR_GREEN, "brama si? zamyka");
return 1;
}
return 0;
}
[ Dodano : 2011-06-10, 22:50 ]
mam taki warning tam C:\Documents and Settings\Administrator\Pulpit\bramagg.pwn(7) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
o co koman pomu?cie
Wysłany: 2011-06-10, 22:58
BraYaN_
Wiek: 34 Na forum: 6603 dni Posty: 276
Nick w MP: BraYaN_
Piwa : 1614
Kod: #include <a_samp>
#define COLOR_GREEN 0x33AA33AA
new brama;
public OnGameModeInit()
{
brama = CreateObject(980, 1811.6736, -1889.3163, 13.4141, 90.3659, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/brama.o", true) == 0)
{
MoveObject(brama, 115,1811.4442,-1906.5715, 17.2240);
SendClientMessage(playerid, COLOR_GREEN, "brama si? otwiera");
return 1;
}
if(strcmp(cmdtext, "/brama.z", true) == 0)
{
MoveObject(brama, 115,1811.7610,-1889.5732, 13.4141);
SendClientMessage(playerid, COLOR_GREEN, "brama si? zamyka");
return 1;
}
return 0;
}
Wysłany: 2011-06-10, 23:02
gruszex
Wiek: 28 Na forum: 6038 dni Posty: 53
Piwa : 10
dobrze jest bez warning?w ale ta brama le?y i jak wpisze /brama.o to idze pod ziemie a jak wpisze /brama.z to nic si? nie dziej? dlaczego ?
[ Dodano : 2011-06-10, 23:08 ]
odpiszcie do jutra. Jutro z rana wejd? tu ;D
Wysłany: 2011-06-10, 23:10
BraYaN_
Wiek: 34 Na forum: 6603 dni Posty: 276
Nick w MP: BraYaN_
Piwa : 1614
gruszex , nie poda?e? rY, rZ, dlatego jest w innej pozycji. Ja da?em ci 0, 0, poniewa? nie wiem jak ty masz.
Wysłany: 2011-06-11, 09:57
gruszex
Wiek: 28 Na forum: 6038 dni Posty: 53
Piwa : 10
aha czaje czyli jak na przyk?ad wezme rotacje na 90 to b?dzie git ? ;d zaraz pokombinuje thx
[ Dodano : 2011-06-11, 10:42 ]
Ta brama jest w takiej pozycji
http://wgrajfoto.pl/pokaz/img0611/samp0024e2f.png
A ja chce ?eby by?a w takiej pozycji
http://www.fotosik.pl/pok...9685bc8178.html
I w?a?nie nie wiem jak to zrobi? wszed? na mta ustawi?em bram? klikn??em na ni? tam by?o takie rotacje 0 0 270
[ Dodano : 2011-06-11, 10:44 ]
potem w pawno zrobi?em te? takie rotacje ale by?o to samo co na 1 screenie
[ Dodano : 2011-06-11, 21:50 ]
co ma by? na ko?cu ?eby by?y takie rotacje jak na screenie 2
[ Dodano : 2011-06-12, 22:00 ]
z bram? nadal nic ;/ Ale teraz robie tp na pickup i mam 3 warningi
Kod: #include <a_samp>
#define COLOR_GREEN 0x33AA33AA
public OnGameModeInit()
{
AddStaticPickup(1752.8751,-1893.3857,13.5573,83.0679);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == 2){
SetPlayerPos(playerid, 1749.4747,-1804.2114,52.4688);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_GREEN, "BAR");
return 1;
}
return 1;
}
a teraz te warningi
Kod: C:\Documents and Settings\Administrator\Pulpit\pickup.pwn(6) : warning 213: tag mismatch
C:\Documents and Settings\Administrator\Pulpit\pickup.pwn(6) : warning 213: tag mismatch
C:\Documents and Settings\Administrator\Pulpit\pickup.pwn(6) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
napiszcie co zrobi?em ?le
Wysłany: 2011-06-14, 17:32
Flegma
Wiek: 33 Na forum: 6515 dni Posty: 1
Witam,
Mam takie ERRORY
Kod: x\Nowy folder\gamemodes\RP.pwn(876) : error 017: undefined symbol "UpdateVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(917) : error 017: undefined symbol "GetVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(2834) : error 017: undefined symbol "GetVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(2835) : error 017: undefined symbol "UpdateVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(2841) : error 017: undefined symbol "GetVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(2842) : error 017: undefined symbol "UpdateVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(4537) : error 017: undefined symbol "UpdateVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(4843) : error 017: undefined symbol "UpdateVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(4861) : error 017: undefined symbol "UpdateVehicleDamageStatus"
x\Nowy folder\gamemodes\RP.pwn(13686) : error 017: undefined symbol "UpdateVehicleDamageStatus"
11 Errors.
Wydaje mi si? ze brakuje jakiego? include w pawno, ale jakiego?
876 linijka: Kod: UpdateVehicleDamageStatus(Pojazd[idx], SamochodInfo[idx][sHP], SamochodInfo[idx][sHP2], SamochodInfo[idx][sHP3], SamochodInfo[idx][sHP4]);
Edit//
Pobra?em paczke include i dzia?a. Dobrze mi si? wydawa?o.
Niestety nie wiem kt?ry include na to dzia?a, ale sobie poradzilem.
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: