Error help -
LuisPark - 29.11.2014
I tried to make a script for newbie ,when they type the command it will show them checkpoint to there, but i have some error
PHP код:
./includes/OnDialogResponse.pwn(18933) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18935) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18937) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18943) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18945) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18951) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18953) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18959) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18961) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18966) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18968) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18973) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18975) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18980) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18982) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18987) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18989) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18994) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(18996) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(19001) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(19003) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(19008) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(19010) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(19015) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(19017) : error 010: invalid function or declaration
./includes/OnDialogResponse.pwn(19022) : error 010: invalid function or declaration
This is code
PHP код:
CMD:timvieclam(playerid, params[]) {
return ShowPlayerDialog(playerid, TIMVIECLAM, DIALOG_STYLE_LIST, "Tim Viec Lam ?","Tham Tu\nLuat Su\nGai diem\nNguoi buon ban thuoc phien\nTho Sua Xe\nVe Si\nDai ly Buon Sung\nVo Si\nTai Xe Taxi\nVan chuyen thuoc phien\nTho Thu Cong\nNguoi pha ruou\nTai Xe Cho hang\nPizza Boy", "Chon", "Huy Bo");
}
Define
PHP код:
#define TIMVIECLAM (3870)
The function
PHP код:
}
if(dialogid == TIMVIECLAM)
{
if(response)
{
if(listitem == 0) // Tham Tu
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1555.5,-1675.59021,16.19531, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao ben trong So Canh Sat gan chu J go /nhanviec .");
return 1;
}
if(listitem == 1) //Luat Su
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1380.8955,-1088.6808,27.3844, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao` ben trong gym cho~ locker an' /join.");
return 1;
}
if(listitem == 2) //Gai Diem
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1555.26, -1675.76, 16.19, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao ben trong Lau Xanh go /nhanviec.");
return 1;
}
if(listitem == 3) //Buon Thuoc Phien
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2166.3772,-1675.3829,15.0859, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 4) //Ve si
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid,-2269.256103, -158.054321, 35.320312, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 5) //Tho Sua Xe
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, -2032.601928, 143.866592, 28.835937, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 6) //Buon Vu khi
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1365.8473, -1275.4987, 13.5469, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 7) //Vo si
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 766.0804,14.5133,1000.7004, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 8) // Tai Xe Taxi
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2354.2703,-1169.3293,28.0083, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 9) // Van chuyen thuoc phien
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2354.2808,-1169.2959,28.0066, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 10) // Tho Thu Cong
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2195.8335,-1973.0638,13.5589, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 11) // Nguoi pha ruou
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1836.2959,-1682.13721,13.35389, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 12) // Tai Xe Cho hang
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2438.0566, -2120.7471, 13.5469, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 13) // Pizza Boy
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, -1720.962646, 1364.456176, 7.187500, 3.0);
CP[playerid] = 252000;
return 1;
}
}
}
Help me please
Re: Error help -
Glossy42O - 29.11.2014
PHP код:
if(dialogid == TIMVIECLAM)
{
if(response)
{
if(listitem == 0) // Tham Tu
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1555.5,-1675.59021,16.19531, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao ben trong So Canh Sat gan chu J go /nhanviec .");
return 1;
}
if(listitem == 1) //Luat Su
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1380.8955,-1088.6808,27.3844, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao` ben trong gym cho~ locker an' /join.");
return 1;
}
if(listitem == 2) //Gai Diem
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1555.26, -1675.76, 16.19, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao ben trong Lau Xanh go /nhanviec.");
return 1;
}
if(listitem == 3) //Buon Thuoc Phien
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2166.3772,-1675.3829,15.0859, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 4) //Ve si
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid,-2269.256103, -158.054321, 35.320312, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 5) //Tho Sua Xe
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, -2032.601928, 143.866592, 28.835937, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 6) //Buon Vu khi
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1365.8473, -1275.4987, 13.5469, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 7) //Vo si
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 766.0804,14.5133,1000.7004, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 8) // Tai Xe Taxi
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2354.2703,-1169.3293,28.0083, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 9) // Van chuyen thuoc phien
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2354.2808,-1169.2959,28.0066, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 10) // Tho Thu Cong
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2195.8335,-1973.0638,13.5589, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 11) // Nguoi pha ruou
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1836.2959,-1682.13721,13.35389, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 12) // Tai Xe Cho hang
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2438.0566, -2120.7471, 13.5469, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 13) // Pizza Boy
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, -1720.962646, 1364.456176, 7.187500, 3.0);
CP[playerid] = 252000;
return 1;
}
}
}
return 1;
}
PHP код:
CMD:timvieclam(playerid, params[])
{
ShowPlayerDialog(playerid, TIMVIECLAM, DIALOG_STYLE_LIST, "Tim Viec Lam ?","Tham Tu\nLuat Su\nGai diem\nNguoi buon ban thuoc phien\nTho Sua Xe\nVe Si\nDai ly Buon Sung\nVo Si\nTai Xe Taxi\nVan chuyen thuoc phien\nTho Thu Cong\nNguoi pha ruou\nTai Xe Cho hang\nPizza Boy", "Chon", "Huy Bo");
return 1;
}
Re: Error help -
LuisPark - 29.11.2014
It still get me that error
Re: Error help -
LuisPark - 29.11.2014
Help please!!!