26.10.2012, 09:47
(
Последний раз редактировалось PAWNO-ANFДNGER; 26.10.2012 в 12:41.
)
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
Code where is the error
Help is cool!
//Edit 3 Clock: 14:49
New error...
Car-system works, but little warning :O
Code:
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 )
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"
PHP код:
//DIALOG_DEFINE
#define DIALOG_CARHOUSEBUY 0
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i = 0; i<sizeof(grotticars);i++)
{
if(GetPlayerVehicleID(playerid) == grotticars[i])
{
OnDialogResponse(playerid, CARHOUSEBUY, response, listitem, inputtext[]) //somewhere there must be error //
}
else
{
}
}
}
return 1;
}
//Edit 3 Clock: 14:49
New error...
Car-system works, but little warning :O
PHP код:
Line (341): The number of parameters are incorrect
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i = 0; i < sizeof(grotticars); i++)
{
if(OnPlayerEnterVehicle(playerid, vehicleid) == grotticars[i])//here is the error, but I dont can find him :o
{
TogglePlayerControllable(playerid, true);
}
else
{
}
}