AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   asdasdasd' (https://forums.alliedmods.net/showthread.php?t=240899)

Kellan123 05-24-2014 08:07

asdasdasd'
 
new Float:test[33];
test[id] - (test[id] > 0.0 ? -1.0 : 1.0)

swapped 05-24-2014 08:17

Re: Invalid string <possibly non-terminated string>
 
give us your all code.

Bugsy 05-24-2014 08:47

Re: Invalid string <possibly non-terminated string>
 
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


Kellan123 05-24-2014 11:36

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

YamiKaitou 05-24-2014 11:48

Re: Invalid string <possibly non-terminated string>
 
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

Kellan123 05-24-2014 14:39

Re: Invalid string <possibly non-terminated string>
 
Quote:

Originally Posted by YamiKaitou (Post 2141945)
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.


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

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