[HELP] 7 gamemode errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] 7 gamemode errors (
/showthread.php?tid=262134)
[HELP] 7 gamemode errors -
Tom1412 - 16.06.2011
The gamemode im using wont allow me to add anything to it with out loads of errors, can anyone help me fix these errors??
Errors
pawn Код:
C:\Users\tom\tgm.pwn(383) : error 004: function "UpdateTime" is not implemented
C:\Users\tom\tgm.pwn(384) : error 004: function "Weather" is not implemented
C:\Users\tom\tgm.pwn(899) : error 017: undefined symbol "SaveStats"
C:\Users\tom\tgm.pwn(956) : warning 219: local variable "GetPName" shadows a variable at a preceding level
C:\Users\tom\tgm.pwn(957) : error 012: invalid function call, not a valid address
C:\Users\tom\tgm.pwn(957) : warning 215: expression has no effect
C:\Users\tom\tgm.pwn(957) : error 001: expected token: ";", but found ")"
C:\Users\tom\tgm.pwn(957) : error 029: invalid expression, assumed zero
C:\Users\tom\tgm.pwn(957) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Lines that the errors are on
pawn Код:
lines 383 to 384 are on ongamemodeinit
line 899 is are on ongamemodeexit
lines 956 to 957 are on onplayerconnect
line 383: UpdateTime();
line 384: Weather();
line 899: SaveStats(i);
line 956: new string[300], GetPName[MAX_PLAYER_NAME];
line 957: format(string,sizeof(string),"» %s(ID:%d) has joined "lyellow2"World Of Trucking!",GetPName(playerid),playerid);
AW: [HELP] 7 gamemode errors -
xerox8521 - 16.06.2011
without code lines ?.. wer are not visionary
Re: [HELP] 7 gamemode errors -
Tom1412 - 17.06.2011
sorry for the mess up iv updated it
Re: [HELP] 7 gamemode errors -
Lorenc_ - 17.06.2011
Check the last thing that you had edited and paste that here.
Re: [HELP] 7 gamemode errors -
Tom1412 - 17.06.2011
well that was a simple /gateopen command with a auto gateclose. i got a spare gm and put the /gateopen command with the auto gateclose on that one and got no errors.
pawn Код:
new Tgate1;//gateclose 1
forward GateClose(playerid);// Tgate1
Tgate1 = CreateDynamicObject( 1844, 1599.053344,-1638.123168,4.122960, 0, 0, 0);
public GateClose(playerid)
{
MoveObject(Tgate1,-722.17376708984,911.45623779297,13.902606964111, 0.97);
return 1;
}
if(strcmp(cmdtext,"/tgate",true) == 0 )
{
if (PlayerToPoint(15, playerid,1589.053344,-1638.123168,14.122960))
{
MoveObject(Tgate1,1599.053344,-1638.123168,4.122960, 0.8);
SetTimer("GateClose", 12000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Rosey_Woods house gate open");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens a garage.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}