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

Wysłany: 2012-02-03, 15:04


erycek







Wiek: 30
Na forum: 5250 dni
Posty: 1



Respekt: 50

Witam.Mam pewien problem mam 3 errory w mapie i nie wiem jak sobie z nimi poradzi?.Pomoc wynagrodz? :piwo: .
Oto errory:
C:\Documents and Settings\max\Pulpit\mapa.pwn(20223) : error 025: function heading differs from prototype
C:\Documents and Settings\max\Pulpit\mapa.pwn(20224) : error 021: symbol already defined: "strrest"
C:\Documents and Settings\max\Pulpit\mapa.pwn(20231) : error 047: array sizes do not match, or destination array is too small

Kod linijek:

Kod:

stock GetPlayerDistanceToPoint(playerid,Float:x,Float:y)
{
new Float:x1,Float:y1,Float:z1;
GetPlayerPos(playerid,x1,y1,z1);
return floatround(floatsqroot((x-x1)*(x-x1)+(y-y1)*(y-y1)));
}
#pragma unused strrest
#pragma unused strtok

strrest(const string[], index)
{
new length = strlen(string),offset = index,result[256];
while ((index < length) && ((index - offset) < (sizeof(result) - 1)) && (string[index] > '\r'))
{
result[index - offset] = string[index];index++;
}
result[index - offset] = EOS;
return result;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-02-03, 15:10


BraYaN_







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

Piwa: 1614

Respekt: 63

[nt]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-02-03, 15:12


mmarcinn21

Programista






Wiek: 32
Na forum: 6363 dni
Posty: 32

Piwa: 727

Respekt: 60

W gamemodzie/skrypcie masz dwa razy:

Kod:


strrest(const string[], index)
{
new length = strlen(string),offset = index,result[256];
while ((index < length) && ((index - offset) < (sizeof(result) - 1)) && (string[index] > '\r'))
{
result[index - offset] = string[index];index++;
}
result[index - offset] = EOS;
return result;
}


Usu? jedn?.

Podpis



Posiadam konto tylko na GtaOnline
Ostatnio zmieniony przez mmarcinn21 2012-02-03, 15:19, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Tagi: jak :: naprawić
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Jak to naprawić ? Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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