Need help for fixing errors -
Watson Destor - 30.01.2013
I'm getting two of those errors:
Код:
error 035: argument type mismatch (argument 2)
Also i get 3 of those warnings:
Код:
warning 213: tag mismatch
In those lines:
Код:
GetPlayerPos(playerid, X, Y, Z); first error
GetXYInFrontOfPlayer(playerid, X, Y, 2.0); second error
HouseInfo[hID][FPosX][i] = X; HouseInfo[hID][FPosY][i] = Y; HouseInfo[hID][FPosZ][i] = Z; 3 warnings
HouseInfo[hID][FRotX][i] = 0; HouseInfo[hID][FRotY][i] = 0; HouseInfo[hID][FRotZ][i] = 0;
HouseInfo[hID][FurnitureObj][i] = CreateDynamicObject(FurnitureInfo[HouseInfo[hID][FModel][i]][0], HouseInfo[hID][FPosX][i], HouseInfo[hID][FPosY][i], HouseInfo[hID][FPosZ][i], HouseInfo[hID][FRotX][i], HouseInfo[hID][FRotY][i], HouseInfo[hID][FRotZ][i], HouseInfo[hID][VirtualWorld], HouseInfo[hID][Interior], -1, 50.0);
SaveFurniturePosition(hID, i);
Please help me and sorry for my bad english.
P.S i've copied this fs to my gm
https://sampforum.blast.hk/showthread.php?tid=405201
Re: Need help for fixing errors -
Youice - 30.01.2013
here place "GetXYInFrontOfPlayer" with this and tell me
PHP код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}
Re: Need help for fixing errors -
Watson Destor - 30.01.2013
changed, same errors :/
Re: Need help for fixing errors -
Youice - 30.01.2013
Quote:
Originally Posted by Watson Destor
GetXYInFrontOfPlayer(playerid, X, Y, 2.0); second error
|
Show us the second error.
Re: Need help for fixing errors -
Watson Destor - 30.01.2013
Second error is same as first
Re: Need help for fixing errors -
megamind2067 - 30.01.2013
deleted
Re: Need help for fixing errors -
Youice - 30.01.2013
PS: please recheck the lines (I apologies), because I can't fine any issue.
Re: Need help for fixing errors -
Watson Destor - 30.01.2013
I've forget to note some warnings, i've wrote them, maybe it will help.
Re: Need help for fixing errors -
mastermax7777 - 30.01.2013
did u define x as a float? (new Float:X, Float:Y...
Re: Need help for fixing errors -
Watson Destor - 30.01.2013
It's defined here:
Код:
enum Iejimoinfo
{
IDas,
Float:X,
Float:Y,
Float:Z,
Interior,
Float:X2,
Float:Y2,
Float:Z2
};