I have 2 warnings
#1

Hello! May you please help me fix 2 warnings? :/

error 001: expected token: ";", but found "return"
warning 204: symbol is assigned a value that is never used: "Shop"

Line which gaved me problems:

return 1;

Yeah, its wierd, because this line have only this, but it still gives me 2 errors :S
Reply
#2

show us a little more ,maybe that part of script.
Reply
#3

Show the line before the return.
Reply
#4

Код:
public OnGameModeInit()
{
    Shop = CreatePickup(1318,1,1352.1962,-1756.9938,13.5078)
	// Don't use these lines if it's a filterscript
Here you go.
Reply
#5

pawn Код:
Shop = CreatePickup(1318,1,1352.1962,-1756.9938,13.5078);
Reply
#6

Add ';' to the end of the 'Shop = CreatePickup(1318,1,1352.1962,-1756.9938,13.507'.
Reply
#7

Thanks for advice, but now it gives me this:

warning 204: symbol is assigned a value that is never used: "Shop"
Reply
#8

you have at top of script
pawn Код:
new Shop;
?if no, add this
Edit: you need add function of Shop
exemple
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Shop) GivePlayerMoney(playerid,10000);
    return 1;
}
Reply
#9

You never use it after creating the pickup, like to destroy it, so it's not needed. You can just remove 'shop' when creating the pickup and remove the global variable of it, in-less you're planning to use it somewhere else.
Reply
#10

Well, I removed that ''Shop'' and now works fine, except thing that I want to give name for that marker. Now it's just a marker, without name, people wont know what is in there :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)