Jump to content

CrystyXSR

Membru
  • Posts

    111
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by CrystyXSR

  1. Am sa fac , si daca tot asa , revin cu reply
  2. Nick:CrystyXSR Problema: Server crashed while executing ...amx Erori / warnings: nu am erori sau warn-uri in gm tot ce am gasit era in server_log.txt [pawn][21:24:50] [debug] Server crashed while executing ...amx [21:24:50] [debug] AMX backtrace: [21:24:50] [debug] #0 00000056 in ?? (... <8 arguments>) at C:\Users\crysty\Desktop\EXTREM~1\Pawno\include\float.inc:109 [21:24:50] [debug] #1 00000056 in public OnDialogResponse () at C:\Users\crysty\Desktop\EXTREM~1\Pawno\include\float.inc:109[/pawn] Lini/script: sunt peste 9.000 de linii in public-ul onplayerdialogresponse. Ai incercat sa rezolvi singur ?: da. FLOAT.INC [pawn]/* Float arithmetic * * © Copyright 1999, Artran, Inc. * Written by Greg Garner ([email protected]) * Modified in March 2001 to include user defined * operators for the floating point functions. * * This file is provided as is (no warranties). */ #if defined _Float_included #endinput #endif #define _Float_included #pragma library Float /* Different methods of rounding */ enum floatround_method { floatround_round, floatround_floor, floatround_ceil, floatround_tozero, floatround_unbiased } enum anglemode { radian, degrees, grades } /**************************************************/ /* Convert an integer into a floating point value */ native Float:float(value); /**************************************************/ /* Convert a string into a floating point value */ native Float:floatstr(const string[]); /**************************************************/ /* Multiple two floats together */ native Float:floatmul(Float:oper1, Float:oper2); /**************************************************/ /* Divide the dividend float by the divisor float */ native Float:floatdiv(Float:dividend, Float:divisor); /**************************************************/ /* Add two floats together */ native Float:floatadd(Float:oper1, Float:oper2); /**************************************************/ /* Subtract oper2 float from oper1 float */ native Float:floatsub(Float:oper1, Float:oper2); /**************************************************/ /* Return the fractional part of a float */ native Float:floatfract(Float:value); /**************************************************/ /* Round a float into a integer value */ native floatround(Float:value, floatround_method:method=floatround_round); /**************************************************/ /* Compare two integers. If the two elements are equal, return 0. If the first argument is greater than the second argument, return 1, If the first argument is less than the second argument, return -1. */ native floatcmp(Float:oper1, Float:oper2); /**************************************************/ /* Return the square root of the input value, same as floatpower(value, 0.5) */ native Float:floatsqroot(Float:value); /**************************************************/ /* Return the value raised to the power of the exponent */ native Float:floatpower(Float:value, Float:exponent); /**************************************************/ /* Return the logarithm */ native Float:floatlog(Float:value, Float:base=10.0); /**************************************************/ /* Return the sine, cosine or tangent. The input angle may be in radian, degrees or grades. */ native Float:floatsin(Float:value, anglemode:mode=radian); native Float:floatcos(Float:value, anglemode:mode=radian); native Float:floattan(Float:value, anglemode:mode=radian); /**************************************************/ /* Return the absolute value */ native Float:floatabs(Float:value); /**************************************************/ #pragma rational Float /* user defined operators */ native Float:operator*(Float:oper1, Float:oper2) = floatmul; native Float:operator/(Float:oper1, Float:oper2) = floatdiv; native Float:operator+(Float:oper1, Float:oper2) = floatadd; native Float:operator-(Float:oper1, Float:oper2) = floatsub; native Float:operator=(oper) = float; stock Float:operator-(Float:oper) return oper^Float:cellmin; /* IEEE values are sign/magnitude */ stock Float:operator*(Float:oper1, oper2) return floatmul(oper1, float(oper2)); /* "*" is commutative */ stock Float:operator/(Float:oper1, oper2) return floatdiv(oper1, float(oper2)); stock Float:operator/(oper1, Float:oper2) return floatdiv(float(oper1), oper2); stock Float:operator+(Float:oper1, oper2) return floatadd(oper1, float(oper2)); /* "+" is commutative */ stock Float:operator-(Float:oper1, oper2) return floatsub(oper1, float(oper2)); stock Float:operator-(oper1, Float:oper2) return floatsub(float(oper1), oper2); stock bool:operator==(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) == 0; stock bool:operator==(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) == 0; /* "==" is commutative */ stock bool:operator!=(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) != 0; stock bool:operator!=(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) != 0; /* "!=" is commutative */ stock bool:operator>(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) > 0; stock bool:operator>(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) > 0; stock bool:operator>(oper1, Float:oper2) return floatcmp(float(oper1), oper2) > 0; stock bool:operator>=(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) >= 0; stock bool:operator>=(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) >= 0; stock bool:operator>=(oper1, Float:oper2) return floatcmp(float(oper1), oper2) >= 0; stock bool:operator<(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) < 0; stock bool:operator<(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) < 0; stock bool:operator<(oper1, Float:oper2) return floatcmp(float(oper1), oper2) < 0; stock bool:operator<=(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) <= 0; stock bool:operator<=(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) <= 0; stock bool:operator<=(oper1, Float:oper2) return floatcmp(float(oper1), oper2) <= 0; stock bool:operator!(Float:oper) return (_:oper & cellmax) == 0; /* forbidden operations */ forward operator%(Float:oper1, Float:oper2); forward operator%(Float:oper1, oper2); forward operator%(oper1, Float:oper2); [/pawn]
  3. ba copil prost n00b ce esti dc faci 2 x topic :@
  4. Respecta modelul ! http://www.sa-mp.ro/forum/index.php?topic=31017.0
  5. [pawn]/* Float arithmetic * * © Copyright 1999, Artran, Inc. * Written by Greg Garner ([email protected]) * Modified in March 2001 to include user defined * operators for the floating point functions. * * This file is provided as is (no warranties). */ #if defined _Float_included #endinput #endif #define _Float_included #pragma library Float /* Different methods of rounding */ enum floatround_method { floatround_round, floatround_floor, floatround_ceil, floatround_tozero, floatround_unbiased } enum anglemode { radian, degrees, grades } /**************************************************/ /* Convert an integer into a floating point value */ native Float:float(value); /**************************************************/ /* Convert a string into a floating point value */ native Float:floatstr(const string[]); /**************************************************/ /* Multiple two floats together */ native Float:floatmul(Float:oper1, Float:oper2); /**************************************************/ /* Divide the dividend float by the divisor float */ native Float:floatdiv(Float:dividend, Float:divisor); /**************************************************/ /* Add two floats together */ native Float:floatadd(Float:oper1, Float:oper2); /**************************************************/ /* Subtract oper2 float from oper1 float */ native Float:floatsub(Float:oper1, Float:oper2); /**************************************************/ /* Return the fractional part of a float */ native Float:floatfract(Float:value); /**************************************************/ /* Round a float into a integer value */ native floatround(Float:value, floatround_method:method=floatround_round); /**************************************************/ /* Compare two integers. If the two elements are equal, return 0. If the first argument is greater than the second argument, return 1, If the first argument is less than the second argument, return -1. */ native floatcmp(Float:oper1, Float:oper2); /**************************************************/ /* Return the square root of the input value, same as floatpower(value, 0.5) */ native Float:floatsqroot(Float:value); /**************************************************/ /* Return the value raised to the power of the exponent */ native Float:floatpower(Float:value, Float:exponent); /**************************************************/ /* Return the logarithm */ native Float:floatlog(Float:value, Float:base=10.0); /**************************************************/ /* Return the sine, cosine or tangent. The input angle may be in radian, degrees or grades. */ native Float:floatsin(Float:value, anglemode:mode=radian); native Float:floatcos(Float:value, anglemode:mode=radian); native Float:floattan(Float:value, anglemode:mode=radian); /**************************************************/ /* Return the absolute value */ native Float:floatabs(Float:value); /**************************************************/ #pragma rational Float /* user defined operators */ native Float:operator*(Float:oper1, Float:oper2) = floatmul; native Float:operator/(Float:oper1, Float:oper2) = floatdiv; native Float:operator+(Float:oper1, Float:oper2) = floatadd; native Float:operator-(Float:oper1, Float:oper2) = floatsub; native Float:operator=(oper) = float; stock Float:operator-(Float:oper) return oper^Float:cellmin; /* IEEE values are sign/magnitude */ stock Float:operator*(Float:oper1, oper2) return floatmul(oper1, float(oper2)); /* "*" is commutative */ stock Float:operator/(Float:oper1, oper2) return floatdiv(oper1, float(oper2)); stock Float:operator/(oper1, Float:oper2) return floatdiv(float(oper1), oper2); stock Float:operator+(Float:oper1, oper2) return floatadd(oper1, float(oper2)); /* "+" is commutative */ stock Float:operator-(Float:oper1, oper2) return floatsub(oper1, float(oper2)); stock Float:operator-(oper1, Float:oper2) return floatsub(float(oper1), oper2); stock bool:operator==(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) == 0; stock bool:operator==(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) == 0; /* "==" is commutative */ stock bool:operator!=(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) != 0; stock bool:operator!=(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) != 0; /* "!=" is commutative */ stock bool:operator>(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) > 0; stock bool:operator>(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) > 0; stock bool:operator>(oper1, Float:oper2) return floatcmp(float(oper1), oper2) > 0; stock bool:operator>=(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) >= 0; stock bool:operator>=(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) >= 0; stock bool:operator>=(oper1, Float:oper2) return floatcmp(float(oper1), oper2) >= 0; stock bool:operator<(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) < 0; stock bool:operator<(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) < 0; stock bool:operator<(oper1, Float:oper2) return floatcmp(float(oper1), oper2) < 0; stock bool:operator<=(Float:oper1, Float:oper2) return floatcmp(oper1, oper2) <= 0; stock bool:operator<=(Float:oper1, oper2) return floatcmp(oper1, float(oper2)) <= 0; stock bool:operator<=(oper1, Float:oper2) return floatcmp(float(oper1), oper2) <= 0; stock bool:operator!(Float:oper) return (_:oper & cellmax) == 0; /* forbidden operations */ forward operator%(Float:oper1, Float:oper2); forward operator%(Float:oper1, oper2); forward operator%(oper1, Float:oper2); [/pawn]
  6. Prima parte a fost rezolvata Acum nu stiu ce are include-ul floar :-?? A ramas decat: [pawn][15:39:40] [debug] Server crashed while executing XSR.amx [15:39:40] [debug] AMX backtrace: [15:39:40] [debug] #0 00000069 in ?? (... <27 arguments>) at C:\Users\crysty\Desktop\EXTREM~1\Pawno\include\float.inc:103 [15:39:40] [debug] #1 00000069 in public OnDialogResponse () at C:\Users\crysty\Desktop\EXTREM~1\Pawno\include\float.inc:103[/pawn]
  7. Nick: CrystyXSR Problema: Server Crash / Down Erori / warnings: nu stunt erori Lini/script: Server_log.txt [pawn][15:38:29] [debug] Run time error 4: "Array index out of bounds" [15:38:29] [debug] Accessing element at index 65535 past array upper bound 49 [15:38:29] [debug] AMX backtrace: [15:38:29] [debug] #0 0011e0c8 in TotalGameTime (playerid=65535, &h=@0x00292798, &m=@0x00292794, &s=@0x00292790) at C:\Users\crysty\Desktop\eXtreme Stunt Romania b29\gamemodes\XSR.pwn:23521 [15:38:29] [debug] #1 0011a750 in ShowStats (playerid=3, liPlayer=65535) at C:\Users\crysty\Desktop\eXtreme Stunt Romania b29\gamemodes\XSR.pwn:23180 [15:38:29] [debug] #2 00196a60 in public cmd_stats (playerid=3, params[]=@0x00284de0 "4") at C:\Users\crysty\Desktop\eXtreme Stunt Romania b29\gamemodes\XSR.pwn:32114 [15:38:29] [debug] #3 native CallLocalFunction () [080dc190] from samp03svr [15:38:29] [debug] #4 00009854 in public OnPlayerCommandText (playerid=3, cmdtext[]=@0x00284dbc "/stats 4") at C:\Users\crysty\Desktop\EXTREM~1\Pawno\include\zcmd.inc:108 [15:38:31] [debug] Run time error 4: "Array index out of bounds" [15:38:31] [debug] Accessing element at index 65535 past array upper bound 49 [15:38:31] [debug] AMX backtrace: [15:38:31] [debug] #0 0011e0c8 in TotalGameTime (playerid=65535, &h=@0x00292798, &m=@0x00292794, &s=@0x00292790) at C:\Users\crysty\Desktop\eXtreme Stunt Romania b29\gamemodes\XSR.pwn:23521 [15:38:31] [debug] #1 0011a750 in ShowStats (playerid=3, liPlayer=65535) at C:\Users\crysty\Desktop\eXtreme Stunt Romania b29\gamemodes\XSR.pwn:23180 [15:38:31] [debug] #2 00196a60 in public cmd_stats (playerid=3, params[]=@0x00284de0 "4") at C:\Users\crysty\Desktop\eXtreme Stunt Romania b29\gamemodes\XSR.pwn:32114 [15:38:31] [debug] #3 native CallLocalFunction () [080dc190] from samp03svr [15:38:31] [debug] #4 00009854 in public OnPlayerCommandText (playerid=3, cmdtext[]=@0x00284dbc "/stats 4") at C:\Users\crysty\Desktop\EXTREM~1\Pawno\include\zcmd.inc:108 ............................................................................................... [15:39:40] [debug] Server crashed while executing XSR.amx [15:39:40] [debug] AMX backtrace: [15:39:40] [debug] #0 00000069 in ?? (... <27 arguments>) at C:\Users\crysty\Desktop\EXTREM~1\Pawno\include\float.inc:103 [15:39:40] [debug] #1 00000069 in public OnDialogResponse () at C:\Users\crysty\Desktop\EXTREM~1\Pawno\include\float.inc:103 [/pawn] Ai incercat sa rezolvi singur ?: da
  8. Nick: CrystyXSR Problema: Vip temporar. Erori / warnings: nu are Lini/script: [pawn]stock timec( timestamp, compare = -1 ) { if ( compare == -1 ) compare = gettime( ); new n, Float:d = ( timestamp > compare ) ? timestamp - compare : compare - timestamp, returnstr[ 32 ] ; if ( d < 60 ) { format( returnstr, sizeof( returnstr ), "1 Minute" ); return returnstr; } else if ( d < 3600 ) { n = floatround( floatdiv( d, 60.0 ), floatround_floor ); format( returnstr, sizeof( returnstr ), "Minute" ); } else if ( d < 86400 ) { n = floatround( floatdiv( d, 3600.0 ), floatround_floor ); format( returnstr, sizeof( returnstr ), "Hour" ); } else if ( d < 2592000 ) { n = floatround( floatdiv( d, 86400.0 ), floatround_floor ); format( returnstr, sizeof( returnstr ), "Day" ); } else if ( d < 31536000 ) { n = floatround( floatdiv( d, 2592000.0 ), floatround_floor ); format( returnstr, sizeof( returnstr ), "Month" ); } else { n = floatround( floatdiv( d, 31536000.0 ), floatround_floor ); format( returnstr, sizeof( returnstr ), "Year" ); } if ( n == 1 ) format( returnstr, sizeof( returnstr ), "1 %s", returnstr ); else format( returnstr, sizeof( returnstr ), "%d %ss", n, returnstr ); return returnstr; }[/pawn] Ai incercat sa rezolvi singur ?: da dar nu mi-a reusit
  9. Cand vreau sa trag cu o arme se schimba si imi dai pumnul la toate armele fac asa . cineva sa ma ajute repede
  10. Vreau sa ma ajute cineva sa fac ceva gen samp query .php ceva gen
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.