24.11.2014, 14:28
Ajuda com a minha Votaзao Multiplas:
Erros
COMANDO ONDE TA DANDO OS ERROS:
Erros
PHP код:
C:\Users\bruno\Desktop\123.pwn(59) : error 076: syntax error in the expression, or invalid function call
C:\Users\bruno\Desktop\123.pwn(59) : error 029: invalid expression, assumed zero
C:\Users\bruno\Desktop\123.pwn(64) : warning 225: unreachable code
C:\Users\bruno\Desktop\123.pwn(67) : warning 202: number of arguments does not match definition
C:\Users\bruno\Desktop\123.pwn(69) : warning 202: number of arguments does not match definition
C:\Users\bruno\Desktop\123.pwn(70) : warning 202: number of arguments does not match definition
C:\Users\bruno\Desktop\123.pwn(71) : warning 202: number of arguments does not match definition
C:\Users\bruno\Desktop\123.pwn(72) : warning 202: number of arguments does not match definition
C:\Users\bruno\Desktop\123.pwn(92) : error 010: invalid function or declaration
C:\Users\bruno\Desktop\123.pwn(345) : warning 203: symbol is never used: "auts"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
if(!strcmp(cmdtext, "/votaзгo", true,8))
{
new vtPergunta[75];
new vtName1[20];
new vtName2[20];
new vtName3[20];
new vtName4[20];
if(sscanf, "s[75]s[20]s[20]s[20]s[20]", vtPergunta, vtName1, vtName2, vtName3, vtName4))
{
SendClientMessage(playerid, COLOR_GRAD2, "Use: /votacaolista [PERGUNTA] [Opзгo 1] [Opзгo 2] [Opзгo 3] [Opзгo 4]");
return 1;
}
if(!votacao[iniciada])
{
SendClientMessageToAll(LARANJA,"====================================");
SendClientMessageToAll(LARANJA,"[Pergunta] %s ?", vtPergunta);
SendClientMessageToAll(LARANJA,"====================================");
SendClientMessageToAll(VERDEMEDIO, "> /vot1 - Pergunta: (%s)", vtName1);
SendClientMessageToAll(VERDEMEDIO, "> /vot2 - Pergunta: (%s)", vtName2);
SendClientMessageToAll(VERDEMEDIO, "> /vot3 - Pergunta: (%s)", vtName3);
SendClientMessageToAll(VERDEMEDIO, "> /vot4 - Pergunta: (%s)", vtName4);
SendClientMessageToAll(LARANJA,"====================================");
votacao[iniciada] = true;
votacao[vot1] = 0;
votacao[vot2] = 0;
votacao[vot3] = 0;
votacao[vot4] = 0;
GameTextForAll("~w~Nova ~r~votacao~w~ foi~b~ iniciada!",6000,3);
for(new i; i <MAX_PLAYERS; i++)
{
votou[i] = false;
}
} else {
SendClientMessage(playerid,BRANCO,"Ja existe uma votaзгo em andamento!");
}
} else {
SendClientMessage(playerid,BRANCO,"Vocк nгo tem permissгo para usar este comando!");
}
return 1;
}
return 0;
}