*** This title is not descriptive - ******
#6

Changed it to:
Код:
    new string[128];
	new Float:vhealth = GetVehicleHealth(vehicleid);
	new Float:phealth = GetPlayerHealth(playerid);
    if(newstate == PLAYER_STATE_DRIVER) {
		format(string,sizeof(string), "Health: %f Vehicle health: %f", phealth, vhealth);
	} else {
		format(string,sizeof(string), "Health: %f", phealth);
	}
	TextDrawShowForPlayer(playerid, string);
Still giving me the same error, and i noticed there are two other warnings about that code:
Код:
C:\Users\9903286\Desktop\Server\gamemodes\CNR.pwn(5017) : warning 202: number of arguments does not match definition
C:\Users\9903286\Desktop\Server\gamemodes\CNR.pwn(5018) : warning 202: number of arguments does not match definition
C:\Users\9903286\Desktop\Server\gamemodes\CNR.pwn(5024) : error 035: argument type mismatch (argument 2)
Oh and btw, the error is for:
TextDrawShowForPlayer(playerid, string);
Reply


Messages In This Thread
*** This title is not descriptive - ****** - by 9903286 - 26.11.2012, 01:36
Re: Help with script error! - by Scenario - 26.11.2012, 01:50
Re: Help with script error! - by 9903286 - 26.11.2012, 01:52
Re: Help with script error! - by 9903286 - 26.11.2012, 02:05
Re: Help with script error! - by Scenario - 26.11.2012, 02:37
Re: Help with script error! - by 9903286 - 26.11.2012, 02:41
Re: *** This title is not descriptive - ****** - by Intoxicated - 26.11.2012, 19:25
Re: Help with script error! - by Vince - 26.11.2012, 19:30
Re: Help with script error! - by Scenario - 26.11.2012, 20:04

Forum Jump:


Users browsing this thread: 4 Guest(s)