Car-House system problem
#1

Hello,

I work on my own Car-House system.
but i have a problem, and I dont know, what I do wrong.(sry for my english),
//edit 2
I dont know, what I write in "response".

Mistake-Code
PHP код:
Line (121): Unknown variable"response" 
Code where is the error
PHP код:
//DIALOG_DEFINE
#define DIALOG_CARHOUSEBUY 0
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_DRIVER)
    {
    for(new 
0i<sizeof(grotticars);i++)
    {
    if(
GetPlayerVehicleID(playerid) == grotticars[i])
    {
        
OnDialogResponse(playeridCARHOUSEBUYresponselistiteminputtext[]) //somewhere there must be error //
    
}
    else
    {
    }
    }
    }
    return 
1;

Help is cool!


//Edit 3 Clock: 14:49
New error...
Car-system works, but little warning :O

PHP код:
Line (341): The number of parameters are incorrect 
Code:
PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    for(new 
0sizeof(grotticars); i++)
    {
    if(
OnPlayerEnterVehicle(playeridvehicleid) == grotticars[i])//here is the error, but I dont can find him :o
    
{
        
TogglePlayerControllable(playeridtrue);
    }
    else
    {
    }
    } 
This code is much longer, I took only that with the Carhouse-system, where is the error, if you want more code, iґll copy that from my gammode )
Reply


Messages In This Thread
Car-House system problem - by PAWNO-ANFДNGER - 26.10.2012, 09:47
Re: Car-House system problem - by Abhishek. - 26.10.2012, 09:49
AW: Car-House system problem - by PAWNO-ANFДNGER - 26.10.2012, 09:53
AW: Car-House system problem - by PAWNO-ANFДNGER - 26.10.2012, 09:55
Re: Car-House system problem - by ikbenremco - 26.10.2012, 11:42
AW: Car-House system problem - by PAWNO-ANFДNGER - 26.10.2012, 11:44
AW: Car-House system problem - by PAWNO-ANFДNGER - 26.10.2012, 12:20

Forum Jump:


Users browsing this thread: 2 Guest(s)