#2

You have to be more precise here...
Can you define 'don't work so great' please?

Looking at your code... I have a few things I would like to point out.
Quote:

Reason[256]; new Str[2500];

Why would you locate a size of 2500? That's a lot of memory that will never be used.
Also the reason is way to big of size. I don't imagine a whole story being written into a reason, neither will it be possible to send a message within SendClientMessage that is over 144 characters long.

Quote:

if(CosminInfo[playerid][Like] == 0)

With this check it would only be possible for a player to be liked (or disliked) 1 time and never again.


Quote:

if(sscanf(params, "uS[256]", Player, Reason))

You are using sscanf to declare and check for two variables, although, if I look at your
Quote:

SendUsage(playerid, "/Respect [ID/Name] [1/-1] [Reason]");

I am assuming you want 3 parameters to be used.

Another thing...
format(Str, 2500, "{FFFF1A}You have recieved a positive respect point from %s with reason: %s",PlayerName(playerid), playerid, Reason);
These parameters are not adding up... You are declaring two parameters (First one with PlayerName and second one with playerid, there is no other one to be used for 'Reason'

You could also do (And should) instead of
Quote:

format(Str, 2500, "

do
Quote:

format(Str, sizeof(Str), "

Reply


Messages In This Thread
Help - by SeeNN - 30.03.2019, 02:32
Re: Help - by justinnater - 30.03.2019, 02:53
Re: Help - by SeeNN - 30.03.2019, 03:19
Re: Help - by justinnater - 30.03.2019, 03:29
Re: Help - by SeeNN - 30.03.2019, 04:33

Forum Jump:


Users browsing this thread: 1 Guest(s)