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

Wysłany: 2011-07-13, 12:56


hunter12







Wiek: 29
Na forum: 5463 dni
Posty: 2
Nick w MP: John_Teylor



Respekt: 50

OTO one:
Kod:

if(strcmp(cmdtext,"/car",true) == 0)
{
new auto;
new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid,X,Y,Z);
GameTextForPlayer(playerid,"~h~~w~Sultan~n~~h~~w~ID:~h~~r~560",2500,1);
auto = CreateVehicle(560,2038.5221,1342.1842,10.6719,3.5436,2,5);
AddVehicleComponent(auto, 1154);
AddVehicleComponent(auto, 1010);
AddVehicleComponent(auto, 1029);
AddVehicleComponent(auto, 1033);
AddVehicleComponent(auto, 1170);
AddVehicleComponent(auto, 1000);
return 1;
}


Nast?pne:
GetPlayerPos(PX[playerid], PY[playerid], PZ[playerid]);

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-19, 07:23


Maniek1997







Wiek: 28
Na forum: 5794 dni
Posty: 154

Piwa: 8778

Respekt: 101
Respekt: 101

Ostrzeżeń: 100%
Kod:

if(strcmp(cmdtext,"/car",true) == 0)
{
new auto;
new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid,X,Y,Z);
GameTextForPlayer(playerid,"~h~~w~Sultan~n~~h~~w~ID:~h~~r~560",2500,1);
auto = CreateVehicle(560,2038.5221,1342.1842,10.6719,3.5436,2,5,5);
AddVehicleComponent(auto, 1154);
AddVehicleComponent(auto, 1010);
AddVehicleComponent(auto, 1029);
AddVehicleComponent(auto, 1033);
AddVehicleComponent(auto, 1170);
AddVehicleComponent(auto, 1000);
return 1;
}


Kod:

GetPlayerPos(PX[playerid], PY[playerid], PZ[playerid]);


new Float:PX[MAX_PLAYERS], Float:PY[MAX_PLAYERS],Float:PZ[MAX_PLAYERS];

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-21, 19:33


Druidos







Wiek: 35
Na forum: 5733 dni
Posty: 9



Respekt: 50

Siemka.
Pobra?em sobie map? maj?c nadziej? fajnie pogra?. Kompilowa?em do .amx i wyskoczy?y mi b??dy:
Kod:

C:\Users\DEDE\Desktop\Serwer SAMp\pawno\include\a_money.inc(21) : error 017: undefined symbol "SetPVarInt"
C:\Users\DEDE\Desktop\Serwer SAMp\pawno\include\a_money.inc(23) : error 017: undefined symbol "GetPVarInt"
C:\Users\DEDE\Desktop\Serwer SAMp\pawno\include\a_money.inc(30) : error 017: undefined symbol "SetPVarInt"
C:\Users\DEDE\Desktop\Serwer SAMp\pawno\include\a_money.inc(33) : error 017: undefined symbol "GetPVarInt"


Napiszcie mi jak te errory "zg?adzi?" ^^

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-21, 19:37


Maniek1997







Wiek: 28
Na forum: 5794 dni
Posty: 154

Piwa: 8778

Respekt: 101
Respekt: 101

Ostrzeżeń: 100%
Dodaj to pod includami na g?rze

Kod:

native SetPVarInt(playerid, varname[], int_value);
native GetPVarInt(playerid, varname[]);
native SetPVarString(playerid, varname[], string_value[]);
native GetPVarString(playerid, varname[], string_return[], len);
native SetPVarFloat(playerid, varname[], Float:float_value);
native Float:GetPVarFloat(playerid, varname[]);
native DeletePVar(playerid, varname[]);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-21, 20:24


Druidos







Wiek: 35
Na forum: 5733 dni
Posty: 9



Respekt: 50

"Maniek1997" napisał/a:

Dodaj to pod includami na g?rze

Kod:

native SetPVarInt(playerid, varname[], int_value);
native GetPVarInt(playerid, varname[]);
native SetPVarString(playerid, varname[], string_value[]);
native GetPVarString(playerid, varname[], string_return[], len);
native SetPVarFloat(playerid, varname[], Float:float_value);
native Float:GetPVarFloat(playerid, varname[]);
native DeletePVar(playerid, varname[]);


Gdzie pod includami na g?rze? W kodzie mapy?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-21, 20:38


Maniek1997







Wiek: 28
Na forum: 5794 dni
Posty: 154

Piwa: 8778

Respekt: 101
Respekt: 101

Ostrzeżeń: 100%
Widz? ?e jeste? nowy w pawn wi?c wyt?umacze Ci to po nowemu.

A wi?c po ostatnim #include <tutaj nazwa> wklejasz to

Kod:

native SetPVarInt(playerid, varname[], int_value);
native GetPVarInt(playerid, varname[]);
native SetPVarString(playerid, varname[], string_value[]);
native GetPVarString(playerid, varname[], string_return[], len);
native SetPVarFloat(playerid, varname[], Float:float_value);
native Float:GetPVarFloat(playerid, varname[]);
native DeletePVar(playerid, varname[]);


przyk?adowo

Kod:


#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <dof2>
#include <foreach>

native SetPVarInt(playerid, varname[], int_value);
native GetPVarInt(playerid, varname[]);
native SetPVarString(playerid, varname[], string_value[]);
native GetPVarString(playerid, varname[], string_return[], len);
native SetPVarFloat(playerid, varname[], Float:float_value);
native Float:GetPVarFloat(playerid, varname[]);
native DeletePVar(playerid, varname[]);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-21, 20:47


Druidos







Wiek: 35
Na forum: 5733 dni
Posty: 9



Respekt: 50

Nie dzia?a, nadal to jest ale :piwo: za ch?ci

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-21, 20:49


Maniek1997







Wiek: 28
Na forum: 5794 dni
Posty: 154

Piwa: 8778

Respekt: 101
Respekt: 101

Ostrzeżeń: 100%
Druidos, Je?li nie dzia?a to pobierz najnowsz? paczke includ?w zadzia?a na 100 %

http://team.sa-mp.com/fil..._R2-2_win32.zip

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-22, 10:26


Druidos







Wiek: 35
Na forum: 5733 dni
Posty: 9



Respekt: 50

Ok thx dzia?a.

W konsoli jak pr?buje odpali? pisze mi
Kod:

Script[gamemodes/WOLS.amx]: Run time error 19: "File or function is not found"

Co robi? aby odpali?o?

@Edit
Ju? mam

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-24, 15:59


Bloodhacker







Wiek: 26
Na forum: 5722 dni
Posty: 3

Piwa: 2

Respekt: 50

Ostrzeżeń: 80%
Mam problem i to nie ma?y o co chodzi z Error 35 i error 33 ? Help dam kod error?w oraz :piwo: kto pomo?e
Kod:

C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2199) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2199) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2201) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2201) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2200) : warning 204: symbol is assigned a value that is never used: "idx"
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2538) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2992) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3009) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3083) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3222) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3261) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3302) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3341) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3384) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3391) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3451) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3468) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3668) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3675) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3717) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3756) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3795) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3835) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3895) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3911) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(4009) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(4050) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-25, 10:21


Maniek1997







Wiek: 28
Na forum: 5794 dni
Posty: 154

Piwa: 8778

Respekt: 101
Respekt: 101

Ostrzeżeń: 100%
Pokaz kod.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-25, 11:18


Bloodhacker







Wiek: 26
Na forum: 5722 dni
Posty: 3

Piwa: 2

Respekt: 50

Ostrzeżeń: 80%
Kod:

C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2199) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2199) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2201) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2201) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2200) : warning 204: symbol is assigned a value that is never used: "idx"
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2538) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(2992) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3009) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3083) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3222) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3261) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3302) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3341) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3384) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3391) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3451) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3468) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3668) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3675) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3717) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3756) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3795) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3835) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3895) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(3911) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(4009) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Damian_2\Pulpit\Nowy folder (4)\Fun2.pwn(4050) : error 033: array must be indexed (variable "tmp")

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


26 Errors.
to s? errory

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-25, 11:40


Maniek1997







Wiek: 28
Na forum: 5794 dni
Posty: 154

Piwa: 8778

Respekt: 101
Respekt: 101

Ostrzeżeń: 100%
Cz?owieku, podaj mi linijki kodu gdzie errory wyst?puj? a nie tre?? error?w !!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-25, 11:50


Bloodhacker







Wiek: 26
Na forum: 5722 dni
Posty: 3

Piwa: 2

Respekt: 50

Ostrzeżeń: 80%
w () s? jakby? nie widzia? np (4517)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-07-25, 12:03


adrian_pl_20







Wiek: 31
Na forum: 6684 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

Bloodhacker, omg jemu chodzi o ca?e linijki a nie numery linijek...

Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
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