Question about a problem with a simple /setlevel command I made
#1

(First off, I'm new with scripting pawn so this might be a really easy fix, but I don't know) So I have an issue with my command. Basically the score is the character's level. I made a command called /setlevel that sets the users level up one. However, whenever I use /setlevel it won't go beyond one because I think it's setting the value to only 1. How can I fix this? I'll give the pawn code:

Код:
CMD:setlevel(playerid, params[])
{
    new playerlevel=0;
	playerlevel++;
	SetPlayerScore(playerid, playerlevel);
	SendClientMessage(playerid, COLOR_RED, "Your level has been set!");
	return 1;
}
Reply


Messages In This Thread
Question about a problem with a simple /setlevel command I made - by K9IsGodly - 01.01.2014, 19:25
Re: Question about a problem with a simple /setlevel command I made - by SilentSoul - 01.01.2014, 19:29
Re: Question about a problem with a simple /setlevel command I made - by K9IsGodly - 01.01.2014, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)