AlliedModders

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

Napoleon_be 11-03-2011 12:30

HELP
 
PHP Code:

formatex(szTempcharsmax(szTemp), "%s%s \y[%i$]", if(money >= iShopTSPrices[i]) ? "\r" "\d"iShopTSItems[i], iShopTSPrices[i]) 

Error:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Invalid expression, assumed zero on line 99
Warning: Expression has no effect on line 99
Warning: Expression has no effect on line 99
Error: Expected token: ";", but found ")" on line 99
Error: Invalid expression, assumed zero on line 99
Error: Too many error messages on one line on line 99

Compilation aborted.
4 Errors.
Could not locate output file C:\Documents and Settings\Eigenaar\Bureaublad\PrivateShop.amx (compile failed).

Can someone help me?

KillLikoe 11-03-2011 12:40

Re: HELP
 
is without the if
PHP Code:

 formatex(szTempcharsmax(szTemp), "%s%s \y[%i$]"money >= iShopTSPrices[i] ? "\r" "\d"iShopTSItems[i], iShopTSPrices[i]) 


Napoleon_be 11-03-2011 12:44

Re: HELP
 
Quote:

Originally Posted by KillLikoe (Post 1589205)
is without the if
PHP Code:

 formatex(szTempcharsmax(szTemp), "%s%s \y[%i$]"money >= iShopTSPrices[i] ? "\r" "\d"iShopTSItems[i], iShopTSPrices[i]) 


Thanks, works :)


All times are GMT -4. The time now is 14:15.

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