SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/07/2011, 08:36 PM   #41
BlackWolf120
Gangsta
 
BlackWolf120's Avatar
 
Join Date: Nov 2010
Location: Munich, Germany
Posts: 730
Reputation: 19
Thumbs up Re: Map Changing System

Quote:
Since when post counts goes towards you're scripting level
well, a typical question for starting a dispute...
I assume someone who has more than 4k posts and spends hours and hours on this board is able to understand this easy script tutorial... (i dont think that someone spamms over 4k posts without no sense so i think he understands a bit of scripting and has posted some good stuff, i think u get my point )

But this is going offtopic as uve not contributed anything to my tutorial so please dont start such a noobish discussion and lets live in peace...

regards, wolf.
__________________
BlackWolf120 is offline   Reply With Quote
Old 26/07/2011, 03:26 PM   #42
DhaniMaximus
Little Clucker
 
DhaniMaximus's Avatar
 
Join Date: Jul 2011
Location: Indonesia
Posts: 23
Reputation: 0
Default Re: Map Changing System

thanks.. i realy need it
DhaniMaximus is offline   Reply With Quote
Old 28/07/2011, 12:28 PM   #43
BlackWolf120
Gangsta
 
BlackWolf120's Avatar
 
Join Date: Nov 2010
Location: Munich, Germany
Posts: 730
Reputation: 19
Default Re: Map Changing System

happy i could help
__________________
BlackWolf120 is offline   Reply With Quote
Old 28/08/2011, 07:56 AM   #44
Venice
Banned
 
Join Date: Nov 2010
Location: Tamilnadu,India
Posts: 961
Reputation: 50
Default Re: Map Changing System

Very Nice tutorial
Venice is offline   Reply With Quote
Old 01/09/2011, 04:27 AM   #45
BlackWolf120
Gangsta
 
BlackWolf120's Avatar
 
Join Date: Nov 2010
Location: Munich, Germany
Posts: 730
Reputation: 19
Default Re: Map Changing System

thx
__________________
BlackWolf120 is offline   Reply With Quote
Old 30/04/2012, 09:10 AM   #46
$$inSane
Gangsta
 
$$inSane's Avatar
 
Join Date: Feb 2012
Location: Somewhere in India
Posts: 597
Reputation: 30
Default Re: Map Changing System

nice tutorial
__________________
Be Honest to me !
$$inSane is offline   Reply With Quote
Old 02/05/2012, 11:34 AM   #47
$$inSane
Gangsta
 
$$inSane's Avatar
 
Join Date: Feb 2012
Location: Somewhere in India
Posts: 597
Reputation: 30
Default Re: Map Changing System

how can we edit the timer i.e- the map time. when the map time gets over the maps changes. like Timeleft: 5:00
__________________
Be Honest to me !
$$inSane is offline   Reply With Quote
Old 14/05/2012, 09:40 PM   #48
Habdel
Huge Clucker
 
Join Date: Oct 2009
Posts: 211
Reputation: 5
Default Re : Map Changing System

i get those errors and i just did copy then paste


Code:
K:\SA-MP Server\San Andreas Death Race\gamemodes\SADR.pwn(23) : error 018: initialization data exceeds declared size
K:\SA-MP Server\San Andreas Death Race\gamemodes\SADR.pwn(29) : error 018: initialization data exceeds declared size
K:\SA-MP Server\San Andreas Death Race\gamemodes\SADR.pwn(35) : error 018: initialization data exceeds declared size
K:\SA-MP Server\San Andreas Death Race\gamemodes\SADR.pwn(41) : error 018: initialization data exceeds declared size
K:\SA-MP Server\San Andreas Death Race\gamemodes\SADR.pwn(542) : warning 235: public function lacks forward declaration (symbol "Restart")
K:\SA-MP Server\San Andreas Death Race\gamemodes\SADR.pwn(596) : error 021: symbol already defined: "SetTimer"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.


new Float:MapOneSpawnsTeam1[3][5] = // Line 29
{
    {609.7040,-586.5684,17.2266,256.8267},
    {610.3588,-590.8182,17.2266,263.0453},
    {616.1186,-591.2390,17.2330,268.1367},
};
new Float:MapOneSpawnsTeam2[3][5] =
{
    {804.0115,-612.1152,16.3432,47.2465},
    {812.3744,-612.2579,16.3359,40.3489},
    {824.7153,-612.1229,16.3359,23.1518},
};
new Float:MapTwoSpawnsTeam1[3][5] =
{
    {609.7040,-586.5684,17.2266,256.8267},
    {610.3588,-590.8182,17.2266,263.0453},
    {616.1186,-591.2390,17.2330,268.1367},
};
new Float:MapTwoSpawnsTeam2[3][5] =
{
    {804.0115,-612.1152,16.3432,47.2465},
    {812.3744,-612.2579,16.3359,40.3489},
    {824.7153,-612.1229,16.3359,23.1518},
};

public Restart(playerid,classid) // Line 542
SetTimer("Restart",10000,false);//529

Last edited by Habdel; 16/05/2012 at 01:45 PM.
Habdel is offline   Reply With Quote
Old 21/05/2012, 06:25 PM   #49
BlackWolf120
Gangsta
 
BlackWolf120's Avatar
 
Join Date: Nov 2010
Location: Munich, Germany
Posts: 730
Reputation: 19
Thumbs up Re: Map Changing System

@$$inSane: I dont know exactly what you mean but to change the time/intervall of the timer you intend to set just change the milliseconds:

pawn Code:
SetTimer("Restart",TIME_IN_MILLISECONDS,false);//here: 1 sec = 1000 milliseconds, keep that in mind

@Habdel: You cant just copy and paste, that wont work...

-The definitions have to be outside of a callback!
-Also the timer forwarding has to be done outside of a callback! But the timer itself has to be set in a function or callback.
-The whole timer function/code has to be outside a callback or a function as well. Also you didnt finish the timer code.
A finished timer code looks smth. like this:

pawn Code:
//first forward the timer (outside of callback/function)
forward Restart(playerid,classid);

pawn Code:
//then place the timer code somewhere outside a callback/function as well
public Restart(playerid,classid)
{
      //content...
      return 1;
}

pawn Code:
//Lastly, set the timer. The timer has to be set in a callback or function and not outside of one!
SetTimer("Restart",10000,false);

Hope i could help you
Ask in case questions are left.

Kind regards, wolf.
__________________
BlackWolf120 is offline   Reply With Quote
Old 21/05/2012, 08:21 PM   #50
Dripac
High-roller
 
Dripac's Avatar
 
Join Date: Apr 2009
Location: Austria
Posts: 1,696
Reputation: 236
Default Re: Map Changing System

Very nice, thank you!
Dripac 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
[FilterScript] Simple Voice Changing system v0.1 Haji Filterscripts 9 22/05/2011 12:18 PM
help with changing name cuvip Help Archive 2 23/06/2010 07:58 AM
Changing mph to kmh Chivava Help Archive 2 05/02/2010 10:06 PM
GM changing jamesb93 Help Archive 5 15/11/2009 03:22 PM
Changing a GM jamesb93 Help Archive 0 14/11/2009 10:40 PM


All times are GMT. The time now is 05:18 PM.


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