Jump to content
  • 0

problema


andy47

Question

deci,am inceput intr-o zi sa scriptez si cand am scris:

CMD:nrg( playerid, params[ ] )

{

if(IsPlayerInAnyVehicle(playerid)) return Info( playerid, "~r~~h~Already drive a car. ~b~~h~Out of the car and try again.");

Info( playerid, "Personal ~b~~h~NRG-500~w~ succesfully created" );

aCreateThing(playerid, 522, 191);

PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);

return 1;

}

si cand dau compile:

D:\mere.pwn(261) : error 017: undefined symbol "Info"

D:\mere.pwn(262) : error 017: undefined symbol "Info"

D:\mere.pwn(263) : error 017: undefined symbol "aCreateThing"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

Ce sai fac?

am pus include zcmd

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Încearc? asa.

CMD:nrg( playerid, params[ ] )
{
	new Float:x,Float:y,Float:z,Float:a;
	if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage( playerid, "~r~~h~Already drive a car. ~b~~h~Out of the car and try again.");
	SendClientMessage( playerid, "Personal ~b~~h~NRG-500~w~ succesfully created" );
	GetPlayerPos(playerid,x,y,z);
	GetPlayerFacingAngle(playerid, a);
	new carid = AddStaticVehicle(522,x,y,z,a,5,5);
	PutPlayerInVehicle(playerid, carid, 0);
	PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
	return 1;
}

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

CMD:nrg( playerid, params[ ] )
{
	new Float:x,Float:y,Float:z,Float:a;
	if(IsPlayerInAnyVehicle(playerid)) return GameTextForPlayer( playerid, "~r~~h~Already drive a car. ~b~~h~Out of the car and try again.", 3000, 3);
	GameTextForPlayer( playerid, "Personal ~b~~h~NRG-500~w~ succesfully created" , 3000, 3);
	GetPlayerPos(playerid,x,y,z);
	GetPlayerFacingAngle(playerid, a);
	new carid = AddStaticVehicle(522,x,y,z,a,5,5);
	PutPlayerInVehicle(playerid, carid, 0);
	PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
	return 1;
}

EDIT: Mai bine faci ca aici.

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.