SA-MP Forums Archive
My script stopped working - 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: My script stopped working (/showthread.php?tid=268117)



My script stopped working - pantelimonfl - 11.07.2011

I've been working so hard to the script and now, if i start the server, the gamemode takes the name "Unknown" and the map "San Andreas". And i can't connect to the server. I have in the script
Код:
#define GMVERS "v3.2"
.
.
.
new gmstring[128];
format(gmstring, sizeof(gmstring),"%s",GMVERS);
SetGameModeText(gmstring);
SendRconCommand("mapname • Los Santos •");



Re: My script stopped working - SmileyForCheat - 11.07.2011

What Funcition It's?
. <
. <
. <
Maybe It's Make Crash


Re: My script stopped working - sim_sima - 11.07.2011

You dont need the "format"
you can just do like this:
pawn Код:
#define GMVERS "v3.2"
 
SetGameModeText(GMVERS);



Re: My script stopped working - pantelimonfl - 11.07.2011

Solved. It was from the OnPlayerCommandReceived.


Re: My script stopped working - crowb14 - 11.07.2011

try complie with pawnox and then save it and then try complie with normal pawno and it should be bug fiexed


Re: My script stopped working - Ronaldo_raul™ - 11.07.2011

Quote:
Originally Posted by SmileyForCheat
Посмотреть сообщение
What Funcition It's?
. <
. <
. <
Maybe It's Make Crash
...Lol....zzzz is this guy sleeping.. xD


Re: My script stopped working - sim_sima - 11.07.2011

But you still dont need the "format"
and 128 is WAY too much for that "gmstring",
because its only 4 characters long, so it should be"new gmstring[4]".

I can see, that you need to learn something about formatting and arrays.
Take a look at this: https://sampforum.blast.hk/showthread.php?tid=265433