[AJUDA] +REP 2 problemas
#1

Olб pessoal eu queri pedir uma coisa pra ajeitar no meu comando VIP, tipo colocar /setarvip [id] [meses]

pawn Код:
if(strcmp(cmd, "/setarvip", true) == 0) {
if(!IsPlayerAdmin(playerid)) return 0;
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, 0x008040AA, "(ERRO) Use: /setarvip [id].");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
dini_IntSet(file2, "VIP",1);
SpawnPlayer(plid);
SendClientMessage(playerid, 0x00FF00AA, "(INFO) VIP Setado com sucesso");
SendClientMessage(plid, 0x00FF00AA, "(INFO) Um admin setou VIP para vocк use: /comandosvip para ver os comandos vip, Aproveite ;D");
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido");
return 1;
}
}
e tambйm estou com erro

pawn Код:
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(11676) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(11678) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(11679) : error 017: undefined symbol "tmp"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Linhas
pawn Код:
tmp = strtok(cmdtext, idx);
pawn Код:
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /convidar [id]");
pawn Код:
PlayerB = strval(tmp);
Reply


Messages In This Thread
[AJUDA] +REP 2 problemas - by peumenezes - 28.04.2012, 23:22
Re: [AJUDA] +REP 2 problemas - by .FuneraL. - 28.04.2012, 23:27
Re: [AJUDA] +REP 2 problemas - by peumenezes - 28.04.2012, 23:43
Re: [AJUDA] +REP 2 problemas - by peumenezes - 29.04.2012, 00:00
Re: [AJUDA] +REP 2 problemas - by RoacH` - 29.04.2012, 00:36
Re: [AJUDA] +REP 2 problemas - by peumenezes - 29.04.2012, 00:51

Forum Jump:


Users browsing this thread: 2 Guest(s)