Raised This Month: $51 Target: $400
 12% 

Problem with shop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NWayne
Junior Member
Join Date: Aug 2017
Location: Warsaw, Europe
Old 09-03-2017 , 11:21   Problem with shop
Reply With Quote #1

Hello Guys,

I'd like to make my own shop. And i dont know what is wrong with it.

Code:
		if(StrEqual(Item, "1"))
		{
			 if (GetCredits >= 150);
			 {
				if (!IsPlayerAlive(client) && GetClientTeam(client) > 1);
							{
								PrintToChat(client, "[SKLEP] Kupiles respawn. Baw się dobrze :D "); ///"[SHOP] You bought respawn. Enjoy :D "
								CS_RespawnPlayer(int client);
								Store_SetClientCredits(client, Store_GetClientCredits(client) + -150);
							}
			  }
			  PrintToChat(client, "[SKLEP] Nie masz wystarczajacej ilosci kredytow"); /// "[SHOP] You dont have enough credits"


Quote:
#define GetCredits = Store_GetClientCredits(client);

Quote:
Errors:NWayne_Shop.sp
C:\Users\KORDIAN\Desktop\NWayne_Shop.sp(80) : warning 217: loose indentation
C:\Users\KORDIAN\Desktop\NWayne_Shop.sp(82) : error 029: invalid expression, assumed zero
C:\Users\KORDIAN\Desktop\NWayne_Shop.sp(82) : error 029: invalid expression, assumed zero
C:\Users\KORDIAN\Desktop\NWayne_Shop.sp(82) : warning 215: expression has no effect
C:\Users\KORDIAN\Desktop\NWayne_Shop.sp(82) : error 001: expected token: ";", but found ")"
C:\Users\KORDIAN\Desktop\NWayne_Shop.sp(82) : fatal error 190: too many error messages on one line

Last edited by NWayne; 09-03-2017 at 11:22.
NWayne is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 09-03-2017 , 12:45   Re: Problem with shop
Reply With Quote #2

You have semicolons where you shouldn't have any.
Fyren 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:14.


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