Raised This Month: $ Target: $400
 0% 

asdasdasd'


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 05-24-2014 , 08:07   asdasdasd'
Reply With Quote #1

new Float:test[33];
test[id] - (test[id] > 0.0 ? -1.0 : 1.0)
Kellan123 is offline
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-24-2014 , 08:17   Re: Invalid string <possibly non-terminated string>
Reply With Quote #2

give us your all code.
swapped is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-24-2014 , 08:47   Re: Invalid string <possibly non-terminated string>
Reply With Quote #3

That code you posted makes no sense, did you intend:

PHP Code:
test[id] = (test[id] > 0.0 ? -1.0 1.0
floatVar = (test[id] > 0.0 ? -1.0 1.0
This compiles fine:
PHP Code:
new Float:test[33], Float:sid
    
test[id] - (test[id] > 0.0 ? -1.0 1.0
__________________

Last edited by Bugsy; 05-24-2014 at 08:48.
Bugsy is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 05-24-2014 , 11:36   Re: Invalid string <possibly non-terminated string>
Reply With Quote #4

I mean this...
ColorChat(id, Grey, "^4*^3 You have^1 %.1f points^3.", test[id] - (test[id] > 0.0 ? -1.0 : 1.0)");

Last edited by Kellan123; 05-24-2014 at 11:37.
Kellan123 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-24-2014 , 11:48   Re: Invalid string <possibly non-terminated string>
Reply With Quote #5

ColorChat(id, Grey, "^4*^3 You have^1 %.1f points^3.", test[id] - (test[id] > 0.0 ? -1.0 : 1.0)");

Your error is bolded
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 05-24-2014 , 14:39   Re: Invalid string <possibly non-terminated string>
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
ColorChat(id, Grey, "^4*^3 You have^1 %.1f points^3.", test[id] - (test[id] > 0.0 ? -1.0 : 1.0)");

Your error is bolded
Thanks.

Last edited by Kellan123; 05-24-2014 at 14:39.
Kellan123 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode