08.10.2010, 21:08
(
Последний раз редактировалось Tommie1331; 08.10.2010 в 21:57.
Причина: more errors fixed
)
right guys i started again because of the kicking here my script
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
forward GMswitch();
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Gamemode Changer");
print("--------------------------------------\n");
return 1;
}
public OnGameModeInit()
{
SetTimer("GMswitch",30000,true);
public GMswitch()
{
SendRconCommand("changemode The_Mayor");
return 1;
}
#endif
but where do i add the next gm change?
also there are errors
EDIT form *2*
*C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : warning 217: loose indentation
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : error 029: invalid expression, assumed zero
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : error 004: function "GMswitch" is not implemented
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(30) : error 030: compound statement not closed at the end of file (started at line 21)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
i fixed ssome errors but im still stuck*
once i see a full complete version of thiss and see it i will no how but im well and truley stumped so if you can complete and fix this one ill be overjoyed and happy
because then i can get on with my server also can you lay out where id put the next one if your gonna rescript so i can get a idea of how to make 100 or more
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
forward GMswitch();
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Gamemode Changer");
print("--------------------------------------\n");
return 1;
}
public OnGameModeInit()
{
SetTimer("GMswitch",30000,true);
public GMswitch()
{
SendRconCommand("changemode The_Mayor");
return 1;
}
#endif
but where do i add the next gm change?
also there are errors
EDIT form *2*
*C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : warning 217: loose indentation
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : error 029: invalid expression, assumed zero
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : error 004: function "GMswitch" is not implemented
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(30) : error 030: compound statement not closed at the end of file (started at line 21)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
i fixed ssome errors but im still stuck*
once i see a full complete version of thiss and see it i will no how but im well and truley stumped so if you can complete and fix this one ill be overjoyed and happy
because then i can get on with my server also can you lay out where id put the next one if your gonna rescript so i can get a idea of how to make 100 or more