01.12.2010, 09:03
Ok , so here's the deal . Exemple if I join the server and i am level 0 and tipe that numbers to answer the question i win 1 exp and some money . The problem is that i don't advance in level . If i answer the R.Q. i will be level 0 and exp 1 , only on payday i will advance the next level .
Explication : If i am level 4 and i answer in 1 hour at 5 R.Q i will be : level 4 and exp 5 , so no level up until payday . I want to solve this problem . If you haven't understand post here i will explain more . Here is the code :
Explication : If i am level 4 and i answer in 1 hour at 5 R.Q i will be : level 4 and exp 5 , so no level up until payday . I want to solve this problem . If you haven't understand post here i will explain more . Here is the code :
pawn Код:
if(QuestionStarted == 1 && strfind(text[0], Question, false) == 0)
{
new string[128];
format(string, sizeof(string), "%s has won %d$ and +1 exp by typing '%s' the fastest!!!", PlayerName[playerid], RandomQuestionMoney, Question);
SendClientMessageToAll(COLOR_GREEN, string);
GivePlayerMoney(playerid, RandomQuestionMoney);
PlayerInfo[playerid][pExp] ++;
QuestionStarted = 0;
return 0;
}
new string[128];
format(string, sizeof(string), "(%d) %s", playerid, text);
new string2[128];
format(string2, sizeof(string2), "%s(%d) %s", PlayerName[playerid], playerid, text);
SendPlayerMessageToAll(playerid, string);
return 0;
}