10.04.2012, 19:38
I got this engine command, i got all the public for Engine and other stuff like that
Here is the code
Here is the code
pawn Код:
CMD:engine(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(!engineOn[GetPlayerVehicleID(playerid)])
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
return 1;
}
if(gEngine[playerid] == 1)
{
new string[128];
new playerveh = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(playerid, playerveh, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);//1074
SetTimerEx("StartingTheVehicle",3500,0,"i",playerid);
GameTextForPlayer(playerid, "~w~Starting vehicle engine...",3500,3);
gEngine[playerid] = 1;
return 1;
}
if(engineOn[GetPlayerVehicleID(playerid)])
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
return 1;
}
new string[128];
engineOn[GetPlayerVehicleID(playerid)] = false;
TogglePlayerControllable(playerid, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s spins the vehicle key and turns off the engine.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);//1091
gEngine[playerid] = 0;
return 1;
}
}
}
return 1;
}
CMD:me(playerid,params[])//1101
{
new text[128],message[256],sender[MAX_PLAYER_NAME];
{
if(sscanf(params,"s",text)) SendClientMessage(playerid, COLOR_GRAD2, "/me <action>");
else{
GetPlayerName(playerid,sender,sizeof(sender));
format(message,sizeof(message),"%s(%d) %s",sender,playerid,text);
ProxDetector(10.0, playerid,message,COLOR_PURPLE);
}
}
return 1;
}
pawn Код:
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(893) : error 004: function "UserLogged" is not implemented
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1074) : error 004: function "ProxDetector" is not implemented
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1091) : error 004: function "ProxDetector" is not implemented
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1101) : error 029: invalid expression, assumed zero
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1101) : error 017: undefined symbol "cmd_me"
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1101) : error 029: invalid expression, assumed zero
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1101) : fatal error 107: too many error messages on one line