SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 06/04/2018, 11:02 PM   #131
ForCop
Banned
 
Join Date: Mar 2018
Location: Moldova of Republic
Posts: 122
Reputation: 5
Default Re: Zeex's PAWN Compiler Patches

Quote:
Originally Posted by xeeZ View Post
Yes, you can run it on Ubuntu or any other Linux distribution. It also works on Mac OS X.

is not possible to add switch string?

exemple:
Code:
new TextString[] = "hello";

switch(TextString) 
{
case "hello": return true;

default: return false;
}
ForCop is offline   Reply With Quote
Old 06/04/2018, 11:19 PM   #132
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,669
Reputation: 3061
Default Re: Zeex's PAWN Compiler Patches

There is y_stringhash already for that:

PHP Code:
switch (YHash(string))
{
case 
_H<hello>: {}
case 
_H<world>: {}

Y_Less is offline   Reply With Quote
Old 07/04/2018, 12:07 AM   #133
ForCop
Banned
 
Join Date: Mar 2018
Location: Moldova of Republic
Posts: 122
Reputation: 5
Default Re: Zeex's PAWN Compiler Patches

Quote:
Originally Posted by Y_Less View Post
There is y_stringhash already for that:

PHP Code:
switch (YHash(string))
{
case 
_H<hello>: {}
case 
_H<world>: {}

thanks bro!
ForCop is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PAWN Compiler Error Unable to execute Compiler.. Geeboi_Mehdi General 13 07/11/2015 04:26 PM
Please help ( PAWN Compiler "Error Unable to execute Compiler...") morocco Scripting Help 4 05/02/2013 03:34 PM
Whats up with Zeex? Mauzen Everything and Nothing 5 08/04/2012 08:59 PM
[Help With Pawn] Pawn and compiler is not working..... D_Less Client Support 3 09/03/2012 04:49 AM
What about new pawn compiler in SA-MP 0.3 Maccer Help Archive 11 08/09/2009 04:59 PM


All times are GMT. The time now is 12:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.