Raised This Month: $ Target: $400
 0% 

[HELP] Formatex error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PartialCloning
Senior Member
Join Date: Dec 2015
Old 12-27-2015 , 12:57   Re: [HELP] Formatex error
Reply With Quote #7

It seems to me like you're doing:

condition ? if true : if false : if false.

(LibraryExists(LIBRARY_ALPHA, LibType_Library) && zp_class_alpha_get(player))
? "CLASS_ALPHA"
: "CLASS_ZOMBIE"
: (LibraryExists(LIBRARY_SURVIVOR, LibType_Library) && zp_class_survivor_get(player))

You can only have one if false. But then again it might be just one if false and that last one is a part of the wider conditions.


http://www.amxmodx.org/api/string/formatex

Is the full code yours? It complies fine for me.

Edit: I added your code to the full plugin just to see if it complies, and it does compile, though I had to change the names to nemisis as I dont have the library for the rest of them.

Last edited by PartialCloning; 12-27-2015 at 12:58.
PartialCloning is offline
 



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 18:08.


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