Error help
#1

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 010invalid function or declaration
./includes/OnDialogResponse.pwn(18935) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18937) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18943) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18945) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18951) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18953) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18959) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18961) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18966) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18968) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18973) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18975) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18980) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18982) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18987) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18989) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18994) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(18996) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(19001) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(19003) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(19008) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(19010) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(19015) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(19017) : error 010invalid function or declaration
./includes/OnDialogResponse.pwn(19022) : error 010invalid function or declaration 
This is code
PHP код:
CMD:timvieclam(playeridparams[]) {
   return 
ShowPlayerDialog(playeridTIMVIECLAMDIALOG_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(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid1555.5,-1675.59021,16.195313.0);
                
CP[playerid] = 252000;
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vao ben trong So Canh Sat gan chu J go /nhanviec .");
                return 
1;
            }
            if(
listitem == 1//Luat Su
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid1380.8955,-1088.6808,27.38443.0);
                
CP[playerid] = 252000;
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vao` ben trong gym cho~ locker an' /join.");
                return 
1;
            }
            if(
listitem == 2//Gai Diem
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid1555.26, -1675.7616.193.0);
                
CP[playerid] = 252000;
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vao ben trong Lau Xanh go /nhanviec.");
                return 
1;
            }
            if(
listitem == 3//Buon Thuoc Phien
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid2166.3772,-1675.3829,15.08593.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 4//Ve si
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid,-2269.256103, -158.05432135.3203123.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 5//Tho Sua Xe
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid, -2032.601928143.86659228.8359373.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 6//Buon Vu khi
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid1365.8473, -1275.498713.54693.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 7//Vo si
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid766.0804,14.5133,1000.70043.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 8// Tai Xe Taxi
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid2354.2703,-1169.3293,28.00833.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 9// Van chuyen thuoc phien
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid2354.2808,-1169.2959,28.00663.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 10// Tho Thu Cong
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid2195.8335,-1973.0638,13.55893.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 11// Nguoi pha ruou
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid1836.2959,-1682.13721,13.353893.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 12// Tai Xe Cho hang
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid2438.0566, -2120.747113.54693.0);
                
CP[playerid] = 252000;
                return 
1;
            }
            if(
listitem == 13// Pizza Boy
            
{
                
PlayerPlaySound(playerid10560.00.00.0);
                
SetPlayerCheckpoint(playerid, -1720.9626461364.4561767.1875003.0);
                
CP[playerid] = 252000;
                return 
1;
            }
        }
    } 
Help me please
Reply
#2

PHP код:
if(dialogid == TIMVIECLAM
        { 
        if(
response
        { 
               if(
listitem == 0// Tham Tu 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid1555.5,-1675.59021,16.195313.0); 
                
CP[playerid] = 252000
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vao ben trong So Canh Sat gan chu J go /nhanviec ."); 
                return 
1
            } 
            if(
listitem == 1//Luat Su 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid1380.8955,-1088.6808,27.38443.0); 
                
CP[playerid] = 252000
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vao` ben trong gym cho~ locker an' /join."); 
                return 
1
            } 
            if(
listitem == 2//Gai Diem 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid1555.26, -1675.7616.193.0); 
                
CP[playerid] = 252000
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vao ben trong Lau Xanh go /nhanviec."); 
                return 
1
            } 
            if(
listitem == 3//Buon Thuoc Phien 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid2166.3772,-1675.3829,15.08593.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 4//Ve si 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid,-2269.256103, -158.05432135.3203123.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 5//Tho Sua Xe 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid, -2032.601928143.86659228.8359373.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 6//Buon Vu khi 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid1365.8473, -1275.498713.54693.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 7//Vo si 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid766.0804,14.5133,1000.70043.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 8// Tai Xe Taxi 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid2354.2703,-1169.3293,28.00833.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 9// Van chuyen thuoc phien 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid2354.2808,-1169.2959,28.00663.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 10// Tho Thu Cong 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid2195.8335,-1973.0638,13.55893.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 11// Nguoi pha ruou 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid1836.2959,-1682.13721,13.353893.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 12// Tai Xe Cho hang 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid2438.0566, -2120.747113.54693.0); 
                
CP[playerid] = 252000
                return 
1
            } 
            if(
listitem == 13// Pizza Boy 
            

                
PlayerPlaySound(playerid10560.00.00.0); 
                
SetPlayerCheckpoint(playerid, -1720.9626461364.4561767.1875003.0); 
                
CP[playerid] = 252000
                return 
1
            } 
        } 
    } 
   return 
1;

PHP код:
CMD:timvieclam(playeridparams[]) 
{
    
ShowPlayerDialog(playeridTIMVIECLAMDIALOG_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;

Reply
#3

It still get me that error
Reply
#4

Help please!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)