SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 19/03/2016, 11:37 AM   #1
Mo123
Little Clucker
 
Mo123's Avatar
 
Join Date: Sep 2013
Posts: 35
Reputation: 0
Default Amx disappears

Whenever I go into pawno and load my .pwn file and click on compile/run, the amx file suddenly disappears. Any solution for this problem?
Mo123 is online now   Reply With Quote
Old 19/03/2016, 11:41 AM   #2
Stanford
High-roller
 
Stanford's Avatar
 
Join Date: Feb 2012
Posts: 1,028
Reputation: 84
Default Re: Amx disappears

Do you get any errors? if so, fix them and then compile.
__________________
Y_Less: "That code compiles perfectly, but I can tell you now it won't make me a cup of tea."

Y_Less: "I've said this before. People think that MySQL is some simple plug-and-play magic bullet that you can use to just make your mode instantly better. They don't realise that the "L" in "SQL" means "language". So instead of programming PAWN, and using a bit of this mystery thing, you are now programming in two languages at once. If you spend months learning PAWN, you should spend the same time learning SQL, if not more - it is probably the more complex of the two languages, and not something that just gets bolted on to the side."
Stanford is offline   Reply With Quote
Old 19/03/2016, 11:46 AM   #3
Mo123
Little Clucker
 
Mo123's Avatar
 
Join Date: Sep 2013
Posts: 35
Reputation: 0
Default Re: Amx disappears

I'm not experienced within scripting at all. I thought that you guys could help me out with these errors:

C:\Users\Computer\Desktop\Project server\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Computer\Desktop\Project server\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Computer\Desktop\Project server\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Computer\Desktop\Project server\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(157 : error 017: undefined symbol "RespawnPlayerCar"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(6219) : error 017: undefined symbol "FixHour"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(6452) : error 017: undefined symbol "IsNumeric"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(8610) : error 017: undefined symbol "UnloadPlayerCars"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(9471) : error 017: undefined symbol "FixHour"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(9509) : error 017: undefined symbol "FixHour"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(11407) : error 017: undefined symbol "RespawnPlayerCar"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(11414) : error 017: undefined symbol "RespawnPlayerCar"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(12556) : error 017: undefined symbol "TogglePlayerGPS"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(12597) : error 017: undefined symbol "GetPlayerForename"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(12602) : error 017: undefined symbol "GetPlayerForename"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(1375 : error 017: undefined symbol "FixHour"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(14944) : error 017: undefined symbol "UnloadPlayerCars"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(14956) : error 004: function "SaveHouses" is not implemented
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(14957) : error 004: function "SaveGates" is not implemented
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(1495 : error 004: function "SaveSurnames" is not implemented
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(14960) : error 004: function "SaveGarages" is not implemented
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(14961) : error 017: undefined symbol "SaveCars"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(15504) : error 017: undefined symbol "FixHour"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(15541) : error 004: function "LoadSurnames" is not implemented
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(15543) : error 004: function "LoadHouses" is not implemented
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(15545) : error 004: function "LoadGarages" is not implemented
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(15547) : error 004: function "LoadGates" is not implemented
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(15549) : error 017: undefined symbol "LoadCars"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(15557) : error 017: undefined symbol "FixHour"
C:\Users\Computer\Desktop\Project server\gamemodes\Project.pwn(25049) : error 017: undefined symbol "FixHour"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Mo123 is online now   Reply With Quote
Old 19/03/2016, 11:52 AM   #4
xTURBOx
Huge Clucker
 
xTURBOx's Avatar
 
Join Date: Aug 2015
Location: Earth
Posts: 383
Reputation: 49
Default Re: Amx disappears

AMX file disappears when you can't compile the script
Show the code and we might be able to help you fix the errors?
__________________
xTURBOx is offline   Reply With Quote
Old 19/03/2016, 12:02 PM   #5
Mo123
Little Clucker
 
Mo123's Avatar
 
Join Date: Sep 2013
Posts: 35
Reputation: 0
Default Re: Amx disappears

1578 - RespawnPlayerCar(playerid, carslot, true);
6219 - hour = FixHour(hour);
6452 - if(IsNumeric(string2))
8610 - UnloadPlayerCars(playerid);
9471 - FixHour(tmphour);
9509 - FixHour(tmphour);
11407 - RespawnPlayerCar(playerid, 0, true);

I'll post more once these are done. Just reply back if you're in need of the whole code.
Mo123 is online now   Reply With Quote
Old 19/03/2016, 12:08 PM   #6
xTURBOx
Huge Clucker
 
xTURBOx's Avatar
 
Join Date: Aug 2015
Location: Earth
Posts: 383
Reputation: 49
Default Re: Amx disappears

well those are undefined
you are missing the functions(or include)
__________________
xTURBOx is offline   Reply With Quote
Old 19/03/2016, 12:13 PM   #7
Mo123
Little Clucker
 
Mo123's Avatar
 
Join Date: Sep 2013
Posts: 35
Reputation: 0
Default Re: Amx disappears

Quote:
Originally Posted by xTURBOx View Post
well those are undefined
you are missing the functions(or include)
So I should remove them? And do I remove remove the whole code or just the line?
Mo123 is online now   Reply With Quote
Old 19/03/2016, 12:19 PM   #8
Sascha
High-roller
 
Sascha's Avatar
 
Join Date: Jul 2009
Location: Germany
Posts: 1,496
Reputation: 70
Default Re: Amx disappears

Quote:
Originally Posted by Mo123 View Post
So I should remove them? And do I remove remove the whole code or just the line?
Where did you get that script from?
If you downloaded it from anywhere, check whether it's listing any includes. If you bought it contact the creator for the missing includes...

Check out all includes that are loaded and check whether you have them in /pawno/includes
Usually the includes are listed somewhere at the top with
PHP Code:
#include <includename> 
To be sure you can use the search function to find all includes

The includes that are listed in the code but are not listed in your pawno/includes folder are the ones you should download.
If you'll list those here, someone might be able to provide you with the correct include.
__________________
Don't bother to contact me, I'm out of SA-MP
Sascha is offline   Reply With Quote
Old 19/03/2016, 12:24 PM   #9
Mo123
Little Clucker
 
Mo123's Avatar
 
Join Date: Sep 2013
Posts: 35
Reputation: 0
Default Re: Amx disappears

Quote:
Originally Posted by Sascha View Post
Where did you get that script from?
If you downloaded it from anywhere, check whether it's listing any includes. If you bought it contact the creator for the missing includes...

Check out all includes that are loaded and check whether you have them in /pawno/includes
Usually the includes are listed somewhere at the top with
PHP Code:
#include <includename> 
To be sure you can use the search function to find all includes

The includes that are listed in the code but are not listed in your pawno/includes folder are the ones you should download.
If you'll list those here, someone might be able to provide you with the correct include.
They are not listed in #include and there are no files such as "respawnplayercar" in includes
Mo123 is online now   Reply With Quote
Old 19/03/2016, 12:27 PM   #10
Sascha
High-roller
 
Sascha's Avatar
 
Join Date: Jul 2009
Location: Germany
Posts: 1,496
Reputation: 70
Default Re: Amx disappears

The function names should not be listed as "includes", as they are part of an include...
E.g. from one of my codes:
Code:
#include <a_samp>
#include <a_mysql>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#include <dr_color>
#include <dr_vehicleseperation>
__________________
Don't bother to contact me, I'm out of SA-MP
Sascha 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
Textdraw disappears Jaber_Brown Scripting Help 0 12/03/2013 10:29 PM
Black box disappears sanjil_rijal Scripting Help 13 03/11/2012 02:16 PM
Textdraw disappears Daslee Scripting Help 0 06/03/2012 04:36 PM
[Help]the car disappears vannesenn Scripting Help 6 09/02/2012 06:38 AM


All times are GMT. The time now is 01:02 AM.


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