Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2011-11-23, 16:47


BraYaN_







Wiek: 34
Na forum: 6603 dni
Posty: 276
Nick w MP: BraYaN_

Piwa: 1614

Respekt: 63

hycel, dziwne, nie mo?e odczyta? mapy/skryptu, na kt?rym aktualnie pracujesz. Zobacz czy podczas edytowania nie usun??e? go, lub czy on jest w folderze pawno.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-23, 17:02


hycel







Wiek: 36
Na forum: 5367 dni
Posty: 3
Nick w MP: hycel

Piwa: 4

Respekt: 50

Masz skonfigurowanie mapy i zobacz czy mam cos dodac gdzies:
#include <a_samp>
#include <kolory>
#include <zcmd>
#include <sscanf2>



main()
{
print("\n----------------------------------");
print("Mapa Tuning Drift By $hycel$");
print("----------------------------------\n");
}

public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(21, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(24, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(21, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(8, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(9, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(10, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(11, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(12, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(13, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(14, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(15, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(48, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(49, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

AddStaticPickup(1240, 2, 2028,9174, 1350.8079, 10.8203);
AddStaticPickup(1242, 2, 2028,4667, 1334,7136, 10.8203);

AddStaticVehicle(415, 2039,0841, 1344.3269, 10.4420, 0.0, 62,1);
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 218.0858, -98.6638, 105,2578);
SetPlayerCameraPos(playerid,215.1882, -98,7515, 1005.2575);
SetPlayerCameraLookAt(playerid, 218.0858, -98.6638, 105,2578);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid, 15);
ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 1, 0);
return 1;
}

public OnPlayerConnect(playerid)
{ new imie[MAX_PLAYER_NAME];
GetPlayerName(playerid, imie, sizeof(imie));
new string[125];
format(string, sizeof(string), "** Gracz %s do??czy?(a) do serwera Drift!", imie);
SendClientMessageToAll (SZARY, string);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{ new imie[MAX_PLAYER_NAME];
GetPlayerName(playerid, imie, sizeof(imie));
new string[125];
switch(reason)
{

case 0:
(

format(string), sizeof(string), "** Gracz %s opu?ci?(a) serwer Drift(Timeout)!", imie);

)
case 1:
(

format(string), sizeof(string), "** Gracz %s opu?ci?(a) serwer! Drift", imie);
)
case 2:
(
format(string), sizeof(string), "** Gracz %s opu?ci?(a) serwer (Kick/Ban)!", imie);
)
)
SendClientMessageToAll(SZARY, string);
return 1;

}

public OnPlayerSpawn(playerid)
{ ClerAnimations(playerid);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}
CMD:zycie(playerid, params[])
(
if(GetPlayerMoney(playerid) >= 5000)
(

new Float:hp; GetPlayerHealth(playerid, hp);
new Float:armour: GetPlayerArmour(playerid, armour;
if(hp < 100 66 armour < 100)
(
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0;
SendClientMessage(playerid, ZIELONY, "Kupi?e? ?ycie i pancerz za $5000!");
GivePlayerMoney(playerid, -5000);
)
else if(hp < 100 66 armour== 100$
(

SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0;
SendClientMessage(playerid, ZIELONY, "Kupi?e? ?ycie za $2500!");
GivePlayerMoney(playerid, -2500);
)
else if(hp == 100 66 armour < 100)
(

SetPlayerArmour(playerid, 100.0);
SetPlayerArmour(playerid, 100.0;
SendClientMessage(playerid, ZIELONY, "Kupi?e? pancerz za $2500!");
GivePlayerMoney(playerid, -2500);
)
else SendClientMessage(playerid, CWARN, "Nie potrzebujesz tej komendy!");

else SendClientMessage(playerid, CWARN, "Nie Masz $2500!);
return 1;
)


CMD:auto(playerid, params[])
(

if(IsPlayerAdmin(playerid))
(

new Float:pos[3]; GetPlayerPos(playerid, pos[0], [pos[1], pos[2]);
CreateVehicle(562, pos[0] + 3, pos[1] pos[2], 0.0, random(126), random(126), 60000);
SendClientMessage(playerid, ZIELONY, "Zespawnowa?e? Elegy!");
)
else return 0;
return 1;
)

CMD:kick(playerid, params[])
(
if(isplayerAdmin(playerid))
(

new gracz, powod[32], imiea[MAX_PLAYER_NAME], imieg[MAX_PLAYER_NAME];
if(sscanf(params, "us[32]", gracz, powod)) SendClientMessage(playerid, SZARY, "FORMAT:kick <gracz> <powod>*);
else if(gracz == INVALID_PLAYER_ID) SendClientMessage(playerid, CWARN, "Gracz nie istnieje!");
else
(

GetPlayerName(playerid, imiea, sizeof(imiea));
GetPlayerName(gracz, imiea, sizeof(imiea));
format(imag. sizeof(mag). "AdminCod: %s wyrzuci? %s z serwera! Pow?d %s*, imiea, imieg, powod);
Kick(gracz);

)
(
else retrun 0;
return 1;

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-23, 19:41


BraYaN_







Wiek: 34
Na forum: 6603 dni
Posty: 276
Nick w MP: BraYaN_

Piwa: 1614

Respekt: 63

Sobota, mo?e masz tak: #include <strtok> i na dole mapy stock strtok...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-26, 14:58


eras800







Wiek: 31
Na forum: 5768 dni
Posty: 30
Nick w MP: Jobas

Piwa: 1049

Respekt: 33

Ostrzeżeń: 20%
Witam doda?em system ostrze?e? do mapy a mam takie errory

Kod:

C:\Users\Komputer\Desktop\gta sa\mapa\Polsih_Truck (1).pwn(285) : error 012: invalid function call, not a valid address
C:\Users\Komputer\Desktop\gta sa\mapa\Polsih_Truck (1).pwn(285) : warning 215: expression has no effect
C:\Users\Komputer\Desktop\gta sa\mapa\Polsih_Truck (1).pwn(285) : error 001: expected token: ";", but found ")"
C:\Users\Komputer\Desktop\gta sa\mapa\Polsih_Truck (1).pwn(285) : error 029: invalid expression, assumed zero
C:\Users\Komputer\Desktop\gta sa\mapa\Polsih_Truck (1).pwn(285) : fatal error 107: too many error messages on one line

Compilation gtaonline compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.


KOd
Kod:

GivePlayerMoney(playerid,dini_Int(udb_encode(Player(playerid)), "cash"));


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-26, 15:14


krzyzan







Wiek: 30
Na forum: 5669 dni
Posty: 387

Piwa: 2132

Respekt: 135
Respekt: 135

eras800, Jakim cudem to jest w 1 linijce!?

Kod:

GivePlayerMoney(playerid,dini_Int(Player(playerid), "cash"));


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-26, 15:33


eras800







Wiek: 31
Na forum: 5768 dni
Posty: 30
Nick w MP: Jobas

Piwa: 1049

Respekt: 33

Ostrzeżeń: 20%
to jest w linijcie 285

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-26, 15:46


krzyzan







Wiek: 30
Na forum: 5669 dni
Posty: 387

Piwa: 2132

Respekt: 135
Respekt: 135

eras800, Ok podaj kilka linijek w g?r? i w d?? albo je?eli chcesz poode?lij mape na pw poprawi? szybciutko :D

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-28, 16:24


BBBay

It's a Programmer






Wiek: 28
Na forum: 5429 dni
Posty: 97
Nick w MP: xBBBay

Piwa: 340

Respekt: 45,3

Jaki tutaj mam b??d?
Prosz? o popraw? daj? :piwo:

Kod:

public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp("/dom1", cmdtext, true, 10) == 0)
{
MoveObject(dom1,-533.79998779,600.29998779,0.20000076, 9);
SetTimer("domek1", 10000,0);
SendClientMessage(playerid, COLOR_BLUE, " Zamknie si? automatycznie za 10 sekund!");

return 1;
}
public domek1()
{
MoveObject(dom1,-533.79998779,600.29998779,17.20000076, 9);
}


Podpis
Launcher + Patcher
http://gtao.pl/inne-launc...4498.htm#597948

Pomogłem? Daj :piwo:
Pomogłeś? Dam :piwo:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-28, 21:41


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Kod:


public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp("/dom1", cmdtext, true, 10) == 0)
{
MoveObject(dom1,-533.79998779,600.29998779,0.20000076, 9);
SetTimer("domek1", 10000,0);
SendClientMessage(playerid, COLOR_BLUE, " Zamknie si? automatycznie za 10 sekund!");

return 1;
}
return 0;
}
public domek1()
{
MoveObject(dom1,-533.79998779,600.29998779,17.20000076, 9);
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-29, 18:55


BBBay

It's a Programmer






Wiek: 28
Na forum: 5429 dni
Posty: 97
Nick w MP: xBBBay

Piwa: 340

Respekt: 45,3

Jak zamieni? zeby pisalo tam gdzie wszyscy pisza... a nie na srodku ekranu kod:
Kod:

GameTextForPlayer(playerid, "~g~~h~Ladowanie towaru!Prosimy czekac", 30000, 0);


:piwo: ;)

Podpis
Launcher + Patcher
http://gtao.pl/inne-launc...4498.htm#597948

Pomogłem? Daj :piwo:
Pomogłeś? Dam :piwo:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-11-29, 19:06


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Kod:

SendClientMessage(playerid, -1, "Ladowanie towaru!Prosimy czekac");


tam gdzie -1 mo?esz wpisa? sw?j kolor

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-12-04, 16:52


ruchhks

Dr1ft M4st3r






Wiek: 34
Na forum: 5675 dni
Posty: 25
Nick w MP: R3F4X

Piwa: 53

Respekt: 50

Ostrzeżeń: 100%
ja mam problem z tym kodem:

Kod:


13 linia: TextDrawShowForPlayer(playerid,"moje teksty");
error 035: argument type mismatch (argument 2)


co mam z tym zrobic zeby to naprawic?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-12-04, 17:17


SzoteK

DriftPajace <3






Wiek: 32
Na forum: 5944 dni
Posty: 143
Nick w MP: SzoteK

Piwa: 747

Respekt: 248
Respekt: 248Respekt: 248

Kod:

TextDrawShowForPlayer(playerid,"moje teksty");

Tam gdzie wpisa?e? "moje teksty" musisz wpisa? ID textdrawa a nie jego tre?? ;)

Podpis
Tu był kot ale zjadł go Snoop Dogg
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-12-04, 17:55


ruchhks

Dr1ft M4st3r






Wiek: 34
Na forum: 5675 dni
Posty: 25
Nick w MP: R3F4X

Piwa: 53

Respekt: 50

Ostrzeżeń: 100%
aha ok, ale ten tekst chce widziec w dolnym lewym rogu na niebiesko. Je?li by? m?g? to prosi?bym o gotowy skrypt dam 5 :piwo: musze zrobic to dla kolegi ktory nie ma konta na forum. pozniej albo jutro na PM napisze ci tresc nara.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-12-04, 18:48


BraYaN_







Wiek: 34
Na forum: 6603 dni
Posty: 276
Nick w MP: BraYaN_

Piwa: 1614

Respekt: 63

ruchhks, http://gtao.pl/-textdraw-vt22686.htm Skorzystaj z tego poradnika ;)

Postaw piwo autorowi tego posta
 

 
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » BŁĘDY PRZY KOMPILACJI - ROZWIĄZANIE Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku