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

Wysłany: 2013-03-22, 17:06


tomekzz

~!@#$%^&*






Wiek: 30
Na forum: 6845 dni
Posty: 20

Piwa: 18

Respekt: 50

Kod:

C:\Users\rudyy\Desktop\PAWNO\aim.pwn(118) : error 001: expected token: "#endif", but found "-end of file-"
C:\Users\rudyy\Desktop\PAWNO\aim.pwn(118) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Kod:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(!(oldkeys & KEY_FIRE) && (newkeys & KEY_FIRE) && !(newkeys & KEY_HANDBRAKE)) {
keyfire[playerid] = true;
} else if(!(newkeys & KEY_FIRE)) keyfire[playerid] = false;
if(!ispressingaimkey[playerid]) CheckNextAim[playerid] = false;
ispressingaimkey[playerid] = !! (newkeys & KEY_HANDBRAKE);
if(ispressingaimkey[playerid] && !(oldkeys & KEY_HANDBRAKE)) {
pressingaimtick[playerid] = GetTickCount()+500;
}
return 1;
}


stock notallowed(weaponid) {
switch(weaponid) {

case 25..27, 16..18, 34..37, 39..40, 43..200: return 0;
// Blocks shotguns, sniper rifle, RPG, heat seaker satchel charges etc - besides shotguns these are unaffected by autoaim
// the reason shotguns are removed from checking is because i've found them to be unreliable.
default:return 1;
}
return 1;
}


stock IsPlayerUsingAutoaim(playerid) return autoaim[playerid];


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-22, 17:53


Trader

Programista PAWN/Php






Wiek: 32
Na forum: 4825 dni
Posty: 20
Nick w MP: Roman_Flores

Piwa: 423

Respekt: 60

Kod:


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(!(oldkeys & KEY_FIRE) && (newkeys & KEY_FIRE) && !(newkeys & KEY_HANDBRAKE))
{
keyfire[playerid] = true;
} else if {
(!(newkeys & KEY_FIRE)) keyfire[playerid] = false;
if(!ispressingaimkey[playerid]) CheckNextAim[playerid] = false;
ispressingaimkey[playerid] = (newkeys & KEY_HANDBRAKE);
if(ispressingaimkey[playerid] && !(oldkeys & KEY_HANDBRAKE)) {
pressingaimtick[playerid] = GetTickCount()+500;
}
return 1;
}


stock notallowed(weaponid) {
switch(weaponid) {

case 25..27, 16..18, 34..37, 39..40, 43..200: return 0;
// Blocks shotguns, sniper rifle, RPG, heat seaker satchel charges etc - besides shotguns these are unaffected by autoaim
// the reason shotguns are removed from checking is because i've found them to be unreliable.
default:return 1;
}
return 1;
}



Spr?buj tego

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-22, 18:03


tomekzz

~!@#$%^&*






Wiek: 30
Na forum: 6845 dni
Posty: 20

Piwa: 18

Respekt: 50

to samo
caly skrypt
http://pastebin.com/gZ15TduQ

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-22, 18:38


Trader

Programista PAWN/Php






Wiek: 32
Na forum: 4825 dni
Posty: 20
Nick w MP: Roman_Flores

Piwa: 423

Respekt: 60

U mnie wszystko okej opr?cz 1 warningu kt?rego naprawi?em masz .amx i .pwn

http://www.speedyshare.com/ruTVz/Untitled.pwn - PWN
http://www.speedyshare.com/BzaKx/Untitled.amx - AMX

Licze na :piwo:

Postaw piwo autorowi tego posta
 

 
Tagi: bledy :: skrypcie
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] bledy w skrypcie 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