Error at string
#4

Quote:
Originally Posted by rjjj
Посмотреть сообщение
In these lines you should format the variable String, for example :


This line :


pawn Код:
format(string, sizeof(string), "* %s unholsters his tazer.", PlayerName(playerid));

Should be:


Код:
format(String, sizeof(String), "* %s unholsters his tazer.", PlayerName(playerid));
You must fix theses things , if you do not want to change line per line, just put in the top of your GameMode:


pawn Код:
#define string String

I hope that i have helped .
That might be his problem like I said, but if you would look at this variable String[MAX_PLAYERS], he's using MAX_PLAYERS instead of a simple array size of 128 or smaller, then he should change this to:
pawn Код:
new string[128];
But what you say is right, I mean, if he doesn't want to change line per line -.- but he can use FIND NEXT and this isn't that big mod
Reply


Messages In This Thread
Error at string - by [Air]Adi - 14.07.2011, 13:45
Re: Error at string - by Toreno - 14.07.2011, 13:55
Re: Error at string - by rjjj - 14.07.2011, 13:57
Re: Error at string - by Toreno - 14.07.2011, 14:01
Re: Error at string - by [Air]Adi - 14.07.2011, 14:10
Re: Error at string - by Toreno - 14.07.2011, 14:31
Re: Error at string - by [Air]Adi - 14.07.2011, 14:37
Re: Error at string - by Toreno - 14.07.2011, 14:42

Forum Jump:


Users browsing this thread: 3 Guest(s)