[AJUDA]
#3

Olha oque consegui chegar atй agora , eu so acho que precisa definir:
pawn Код:
if(strcmp(cmd, "/transferirdotz", true) == 0) {
new tmp[256];
new giveplayerid;
new dotzs;
new giveplayer[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new playerdotz2;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Uso: /transferirdotz [id-do-jogador] [quantidade]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Uso: /transferirdotz [id-do-jogador] [quantidade]");
return 1;
}
dotzs = strval(tmp);
if (IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playerdotz2 = GetPlayerDotz(playerid);
if (dotzs > 0 && playerdotz2 >= dotzs) {
GivePlayerDotz(playerid, (0 - dotzs));
GivePlayerDotz(giveplayerid, dotzs);
format(string, sizeof(string), "(INFO) Vocк transferiu para %s (ID:%d) a importвncia de $% Dotz.", giveplayer,giveplayerid, dotzs);
SendClientMessage(playerid, Amarelo, string);
format(string, sizeof(string), "(INFO) Vocк recebeu %d Dotz de %s (ID:%d).", dotzs, sendername, playerid);
SendClientMessage(giveplayerid, Amarelo, string);
} else {
SendClientMessage(playerid, Amarelo, "(INFO) Valor invбlido.");
}
} else {
format(string, sizeof(string), "(INFO) %d nгo estб online.", giveplayerid);
SendClientMessage(playerid, Amarelo, string);
}
return 1;
}
Os Erros que deram:
Код:
C:\Users\Guilherme\Desktop\Brasil Games\gamemodes\novogm.pwn(13560) : error 017: undefined symbol "GetPlayerDotz"
C:\Users\Guilherme\Desktop\Brasil Games\gamemodes\novogm.pwn(13562) : error 017: undefined symbol "GivePlayerDotz"
C:\Users\Guilherme\Desktop\Brasil Games\gamemodes\novogm.pwn(13563) : error 017: undefined symbol "GivePlayerDotz"
Se Isso Ajudar:
pawn Код:
dini_IntSet(file2, "Dotz", dini_Int(file2, "Dotz")-skin);
Reply


Messages In This Thread
[AJUDA] - by GuiihCamargo - 27.02.2012, 15:06
Re: [AJUDA] - by GuiihCamargo - 27.02.2012, 16:51
Re: [AJUDA] - by GuiihCamargo - 27.02.2012, 17:05
Re: [AJUDA] - by Biel_Eu - 27.02.2012, 17:32
Re: [AJUDA] - by Jumper. - 27.02.2012, 17:33
Re: [AJUDA] - by GuiihCamargo - 27.02.2012, 17:41
Re: [AJUDA] - by PlayeR_TheReturN - 27.02.2012, 17:57
Re: [AJUDA] - by GuiihCamargo - 27.02.2012, 18:35
Re: [AJUDA] - by GuiihCamargo - 28.02.2012, 18:50

Forum Jump:


Users browsing this thread: 3 Guest(s)