30.11.2010, 00:37
Hello everybody, good night,
I'm having a problem in a system of college where I quote below:
• to the system would work as follows:
the player would type "/study" (estudar) and then he would hold two minutes to earn a point, and every 5 points he would earn a college level.
and wondered if someone helps me solve the following errors:
Legend:
I would like to solve them,
and since my thanks already.
I'm having a problem in a system of college where I quote below:
• to the system would work as follows:
the player would type "/study" (estudar) and then he would hold two minutes to earn a point, and every 5 points he would earn a college level.
Quote:
//top #include a_samp //As includes, senгo tiver baixe... #include <dutils> #include <dudb> new file[128]; new LevelFaculdade[MAX_PLAYERS]; new PontosFaculdade[MAX_PLAYERS]; forward Estudando(playerid); //Onplayerconnect if(!fexist(file)) { dini_Create(file); dini_IntSet(file,"Faculdade", 0); } else if(fexist(file)) { LevelFaculdade(playerid, dini_Int(file, "Faculdade")); return 1; } //OnPlayerDisconnect new pName[MAX_PLAYER_NAME], tmp[128], arquivo[128]; GetPlayerName(playerid, pName, sizeof(pName)); format(arquivo, sizeof(arquivo), "%s.cfg", pName); dini_IntSet(arquivo, "Faculdade", LevelFaculdade(playerid)); //OnPlayerCommandText. if (strcmp("/estudar", cmdtext, true, 10) == 0) { SetTimer("Estudando",120000,false); TogglePlayerControllable(playerid,false); GameTextForPlayer(playerid,"~w~Estudando",600000,1 ); return 1; } //End. public Estudando(playerid) { if(PontosFaculdade[playerid] == 5) { LevelFaculdade[playerid]++; PontosFaculdade[playerid] = 0; SendClientMessage(playerid,COR_AQUI,"parabens vocк ganhou um level de Faculdade"); TogglePlayerControllable(playerid,false); } else PontosFaculdade[playerid]++; SendClientMessage(playerid,COR_AQUI,"Vocк ganhou um Ponto na Faculdade!"); } |
Quote:
3149 : error 012: invalid function call, not a valid address 3149 : warning 215: expression has no effect 3797 : error 001: expected token: ";", but found ")" 3797 : error 029: invalid expression, assumed zero 3797 : fatal error 107: too many error messages on one line |
Quote:
>3149< LevelFaculdade(playerid, dini_Int(file, "Faculdade")); >3797< dini_IntSet(arquivo, "Faculdade", LevelFaculdade(playerid)); |
and since my thanks already.