Beiträge von Dr. Frauenarzt
-
-
TaxiText[0] = Create3DTextLabel( "Taxi Company\n\nSteigen sie ein, um als\nTaxifahrer zu arbeiten.", COLOR_YELLOW,0.0, 0.0, 0.0, 15.0, 0, 1 );
TaxiFahrzeug[0] = AddStaticVehicle(420,1803.4801,-1912.4325,13.1812,89.9446,6,6); // Taxi2 so gemeint?
-
vehicle_id = CreateVehicle(420,1803.4801,-1912.4325,13.1812,89.9446,6,6);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Taxi Company\n\nSteigen sie ein, um als\nTaxifahrer zu arbeiten.", COLOR_YELLOW,0.0, 0.0, 0.0, 15.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 0.0);
AddStaticVehicle(420,1803.4801,-1912.4325,13.1812,89.9446,6,6); // Taxi2
AddStaticVehicle(420,1803.4899,-1917.4001,13.1967,89.9994,6,6); // Taxi3
AddStaticVehicle(420,1803.3762,-1922.3998,13.1829,89.9988,6,6); // Taxi4
AddStaticVehicle(438,1799.1991,-1932.3890,13.4079,0.4999,6,6); // Taxi5
AddStaticVehicle(438,1794.1992,-1932.3890,13.4079,0.4999,6,6); // Taxi6
AddStaticVehicle(438,1789.1995,-1932.3915,13.4060,0.4998,6,6); // Taxi7
AddStaticVehicle(438,1784.1995,-1932.3937,13.4204,0.4999,6,6); // Taxi8
AddStaticVehicle(420,1144.0011,-1752.9825,13.3771,310.0327,6,6); // taxi9
AddStaticVehicle(420,1144.5994,-1757.3906,13.4130,309.9905,6,6); // taxi10
AddStaticVehicle(420,1162.7166,-1752.6609,13.3734,44.9942,6,6); // taxi11
AddStaticVehicle(420,1162.6656,-1757.8274,13.4161,27.3565,6,6); // taxi11
AddStaticVehicle(438,1155.4054,-1757.5846,13.7058,359.9922,6,6); // taxi12AddStaticVehicle(438,1151.4001,-1757.5858,13.6149,0.0000,6,6); // taxi13
Wie lass ich das auf allen Fahrzeugen anzeigen?
-
C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(941) : warning 213: tag mismatch
Logout2[playerid] = Create3DTextLabel(szString, 0xFFFFFFAA , x, y, z, 10.0, 0, 0);
-
Externer Inhalt www.youtube.comInhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
-
Inwiefern ist das jetzt gemeint?
Meinst du Für 3DText & Pickup jeweils einen eigenen timer zum verschwinden lassen?
-
Logout = CreatePickup(1275, 23, x, y, z, -1);
Logout = SetTimerEx("abort", 6000, false, "i", playerid);Richtig? Der Pickup & 3DText sollen nach 2 Minuten Verschwinden
-
-
public OnPlayerDisconnect(playerid, reason)
{
new Stunden, Minuten, Sekunden, Timestamp;
Timestamp = gettime(Stunden, Minuten, Sekunden);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreatePickup(1275, 23, x, y, z, -1);
new szString[64],
playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
new szDisconnectReason[3][] =
{
"(Timeout/Crash)",
"(Verlassen)",
"(Kick/Ban)"
};
format(szString,sizeof(szString),"%s\n%s\n%02d:%02d:%02d", playerName, szDisconnectReason[reason], Timestamp);
Create3DTextLabel(szString, 0xFFFFFF, x, y, z, 10.0, 0, 0);
savePlayer(playerid);
resetPlayer(playerid);
return 1;
}Kann das so stimmen :)?
-
Wie lasse ich die Zeit auslesen?
-
-
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreatePickup(1275, 4, x, y, z, -1);
new szString[64],
playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
new szDisconnectReason[3][] =
{
"Timeout/Crash",
"Verlassen",
"Kick/Ban"
};Soweit bin ich mal
Wie lasse ich das (Verlassen) (Timout) (Gekickt/Gebannt) anzeigen in einem 3DTextLabel + Uhrzeit wie auf dem Bild
//E: Update
-
-
-
CMD:me(playerid,params[])
{
new string[256];
if(sscanf(params, "s[256]", string)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /me [Text]");
format(string, sizeof(string), "* %s %s", getPlayerName(playerid), string);
return 1;
}habs angepasst... aber wen ich es teste kommt keine Nachricht der Befehl exestiert aber kommt keine Nachricht
-
CMD:me(playerid,params[])
{
new string[256];
if(sscanf(params, "s[256]", string)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /me [Text]");
format(string, sizeof(string), "* %s %s", PlayerName(playerid), string);
return 1;
}PlayerName findet er nicht!
-
CMD:me(playerid,params[])
{
new string[256];
new result[64];
new sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s[256]", string)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /me [Text]");
format(string, sizeof(string), "* %s %s", sendername, result);
return 1;
}Funktioniert nicht.
-
C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(1883) : warning 213: tag mismatch
C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(1883) : warning 202: number of arguments does not match definition
CMD:me(playerid,params[])
{
new string[256];
new result[64];
new sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s[256]", string)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /me [Text]");
format(string, sizeof(string), "* %s %s", sendername, result);
SendRadiusMessage(playerid,30.0,string, COLOR_RED); //1883
return 1;
} -
C:\Users\-\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(1883) : error 017: undefined symbol "ProxDetector"
CMD:me(playerid,params[])
{
new string[256];
new result[64];
new sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s[256]", string)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze: /me [Text]");
format(string, sizeof(string), "* %s %s", sendername, result);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); //1883
return 1;
} -
CMD:shout(playerid)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername)); //
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "FEHLER: (/s)hout [local chat]");
return 1;
}
format(string, sizeof(string), "%s schreit: %s!!", sendername, result);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
}
return 1;
}C:\Users\-\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(1880) : error 017: undefined symbol "sendername"
C:\Users\-\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(1880) : error 017: undefined symbol "sendername"
C:\Users\-\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(1880) : error 029: invalid expression, assumed zero
C:\Users\-\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(1880) : fatal error 107: too many error messages on one line