C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6511) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6532) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6561) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6582) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings.
if(GetPlayerHealth(playerid) >= 1)
if(GetPlayerHealth(playerid) >= 1)
if(GetPlayerHealth(playerid) >= 1)
if(GetPlayerHealth(playerid) >= 1)
new Float:playerHealth;
GetPlayerHealth(playerid, playerHealth);
if(playerHealth >= 1)
{
//blah
}
|
You're not using GetPlayerHealth correctly.
pawn Код:
|
C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6513) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6534) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6565) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6586) : warning 202: number of arguments does not match definition
|
Код:
C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6513) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6534) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6565) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6586) : warning 202: number of arguments does not match definition |
|
It's about:
GetPlayerHealth(playerid, VehicleHealthStack[vehicleid][2]); SetPlayerHealth(playerid, floatsub(VehicleHealthStack[vehicleid][2], 6)); if(GetPlayerHealth(playerid) >= 1) Yes same line |
GetPlayerHealth(playerid, VehicleHealthStack[vehicleid][2]);
SetPlayerHealth(playerid, floatsub(VehicleHealthStack[vehicleid][2], 6));
if(VehicleHealthStack[vehicleid][2] >= 1)
public VehicleDamageToPlayerHealth(playerid, vehicleid)
{
if (IsPlayerInVehicle(playerid,vehicleid))
{
if(Seatbelt[playerid] == 1)
{
GetVehicleHealth(vehicleid, VehicleHealthStack[vehicleid][0]);
if (floatcmp(VehicleHealthStack[vehicleid][0], VehicleHealthStack[vehicleid][1]) == -1)
{
GetPlayerHealth(playerid, VehicleHealthStack[vehicleid][2]);
SetPlayerHealth(playerid, floatsub(VehicleHealthStack[vehicleid][2], 6));
if(GetPlayerHealth(playerid) >= 1)
{
SendClientMessage(playerid,COLOR_CORAL,"You are shook up from the collision.");
SendClientMessage(playerid,COLOR_CORAL,"Luckily, you were wearing your seatbelt and may continue driving.");
}
else
{
SendClientMessage(playerid,COLOR_CORAL,"Your stamina was in bad condition and the force of the collision knocked you out.");
GameTextForPlayer(playerid,"~r~Out ~w~cold",4000,1);
}
}
VehicleHealthStack[vehicleid][1] = VehicleHealthStack[vehicleid][0];
return 1;
}
else
{
GetVehicleHealth(vehicleid, VehicleHealthStack[vehicleid][0]);
if (floatcmp(VehicleHealthStack[vehicleid][0], VehicleHealthStack[vehicleid][1]) == -1)
{
GetPlayerHealth(playerid, VehicleHealthStack[vehicleid][2]);
SetPlayerHealth(playerid, floatsub(VehicleHealthStack[vehicleid][2], 45));
if(GetPlayerHealth(playerid) >= 1)
{
SendClientMessage(playerid,COLOR_CORAL,"You are shook up from the collision.");
SendClientMessage(playerid,COLOR_CORAL,"You can not continue driving, as you are frozen from shock. Buckle up, next time.");
TogglePlayerControllable(playerid, 0);
TimerStack = SetTimerEx("DisablePlayerKnockout",3500,1,"i",playerid);
}
else
{
SendClientMessage(playerid,COLOR_CORAL,"Your stamina was in bad condition and the force of the collision knocked you out.");
GameTextForPlayer(playerid,"~r~Out ~w~cold",4000,1);
}
}
VehicleHealthStack[vehicleid][1] = VehicleHealthStack[vehicleid][0];
return 1;
}
}
return 1;
}
|
Код:
C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6513) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6534) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6565) : warning 202: number of arguments does not match definition C:\Program Files\SAMP Server\gamemodes\estprojekt.pwn(6586) : warning 202: number of arguments does not match definition Go fuck your mom up, retard. |