My script stopped working
#1

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 •");
Reply
#2

What Funcition It's?
. <
. <
. <
Maybe It's Make Crash
Reply
#3

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

Solved. It was from the OnPlayerCommandReceived.
Reply
#5

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)