01.01.2014, 19:25
(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; }