C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30562) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30564) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30565) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30569) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(dialogid == 40)
{
if(response){
else if(listitem == 0){
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para Los Santos!");
PlayerInfo[playerid][pOrigin] = 1;
}
else if(listitem == 1){
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para San Fierro!");
PlayerInfo[playerid][pOrigin] = 2;
}
}
}
if(strcmp(cmdtext, "/mudarorigem", true) == 0)
{
if (PlayerToPoint(2.0, playerid, 359.0245,178.3310,1008.3828))
{
ShowPlayerDialog(playerid,40,DIALOG_STYLE_LIST,"Origem","Los Santos\nLas Venturas","Aceitar","Cancelar");
}
return 1;
}
if(dialogid == 40)
{
if(response){
else if(listitem == 0){
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para Los Santos!");
PlayerInfo[playerid][pOrigin] = 1;
}
else if(listitem == 1){
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para San Fierro!");
PlayerInfo[playerid][pOrigin] = 2;
}
}
}
Tente Adc os Return
pawn Код:
|
if(dialogid == 40)
{
if(response) {
if(listitem == 0) {
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para Los Santos!");
PlayerInfo[playerid][pOrigin] = 1;
return 1;
}
if(listitem == 1) {
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para San Fierro!");
PlayerInfo[playerid][pOrigin] = 2;
return 1;
}
}
}
if(strcmp(cmdtext, "/mudarorigem", true) == 0)
{
if (PlayerToPoint(2.0, playerid, 359.0245,178.3310,1008.3828)) return ShowPlayerDialog(playerid,40,DIALOG_STYLE_LIST,"Origem","Los Santos\nLas Venturas","Aceitar","Cancelar");
return 1;
}
if(dialogid == 40)
{
if(response)
{
else if(listitem == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para Los Santos!");
PlayerInfo[playerid][pOrigin] = 1;
}
else if(listitem == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para San Fierro!");
PlayerInfo[playerid][pOrigin] = 2;
}
}
return true;
}
pawn Код:
|
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30562) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30564) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30565) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30568) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30570) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30573) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Tenta..
pawn Код:
|
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30562) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30564) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30566) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30571) : error 010: invalid function or declaration
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp.pwn(30577) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
if(dialogid == 40)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para Los Santos!");
PlayerInfo[playerid][pOrigin] = 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para San Fierro!");
PlayerInfo[playerid][pOrigin] = 2;
}
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 40)
{
if(response) {
if(listitem == 0) {
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para Los Santos!");
PlayerInfo[playerid][pOrigin] = 1;
return 1;
}
if(listitem == 1) {
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para San Fierro!");
PlayerInfo[playerid][pOrigin] = 2;
return 1;
}
}
}
if(dialogid == 40)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para Los Santos!");
PlayerInfo[playerid][pOrigin] = 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк mudou sua origem para San Fierro!");
PlayerInfo[playerid][pOrigin] = 2;
}
}
}