Also die Staatskasse hat einen Bestimmten Betrag. So hat der Staat was zu tun und wenn sie zu viel Geld ausgeben sind sie Pleite.
Beiträge von Loganpunkt
-
-
kleinkiko:
Die Intro Musik ist von einem Tomorrowland Aftermovie (keine ahnung welches).
Erkannt an dem geschreie im Hintergrund -
Zum müll: Könnte eventuell ins inventar gehen und wenn das Inventar voll ist muss man was wegscheißen bevor was neues gekauft werden kann @iFeet: ame824: ?
-
geschlossenes Wirtschaftsystem =)
-
Zeig uns mal OnPlayerDeath
-
@Mew:
Danke Hat funktioniert hab nicht aufgepasst hehe -
GOOGLE: Klick mich
Aber weil ich nett bin: klick mich -
Es wurde bereits gefragt, was für Erweiterungen du alles hast ?
-
Du solltest dir trotzdem das Aktuelle Streamer Plugin und Include holen.
-
Warning: warning 204: symbol is assigned a value that is never used: "chat_color"
Hier der Code:
new chat_color;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(!IsPlayerInRangeOfPoint(i, CHAT_RADIUS, x , y , z)) continue;
new Float:distance = GetPlayerDistanceFromPoint(i, x, y, z);
if(distance < CHAT_RADIUS / CHAT_FADES)
{
chat_color = CCHAT;
}
else if(distance < CHAT_RADIUS / CHAT_FADES * 2)
{
chat_color = CFADE1;
}
else if(distance < CHAT_RADIUS / CHAT_FADES * 3)
{
chat_color = CFADE2;}
else if(distance < CHAT_RADIUS / CHAT_FADES * 4)
{
chat_color = CFADE3;}
else if(distance <= CHAT_RADIUS / CHAT_FADES * 5)
{
chat_color = CFADE4;}
SendClientMessage(i,CCHAT, string);
}Woran liegt das :o ??
-
Das Geld setz ich ich wann anders.
Ich wills ja aus der Datenbank auslesen :3 -
Jeffry:
Also ungefähr so
new money = SpielerInfo[playerid][pGeld];
GivePlayerMoney(playerid,money);
Haut das hin ? -
Jeffry:
Ok und wie kann ich dann das Geld setzen mit (GivePlayerMoney).
Muss ich das mit z.B. new money = SpielerInfo[playerid][pGeld] und dann GivePlayerMoney(playerid,money); machen? -
SQL
Alles anzeigen[16:37:35] [16:37:35] --------------------------- [16:37:35] MySQL Debugging activated (08/13/14) [16:37:35] --------------------------- [16:37:35] [16:37:35] >> mysql_connect( ) [16:37:35] CMySQLHandler::Connect() - Connection was successful. [16:37:35] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [16:37:35] >> mysql_ping( Connection handle: 1 ) [16:37:35] CMySQLHandler::Ping() - Connection is still alive. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Level); - Escaped 5 characters to Level. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:42] >> mysql_query( Connection handle: 1 ) [16:38:42] CMySQLHandler::Query(SELECT `Level` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:42] >> mysql_store_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::StoreResult() - Result was stored. [16:38:42] >> mysql_fetch_int( Connection handle: 1 ) [16:38:42] CMySQLHandler::FetchRow() - Return: -1 [16:38:42] >> mysql_free_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Geld); - Escaped 4 characters to Geld. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:42] >> mysql_query( Connection handle: 1 ) [16:38:42] CMySQLHandler::Query(SELECT `Geld` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:42] >> mysql_store_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::StoreResult() - Result was stored. [16:38:42] >> mysql_fetch_int( Connection handle: 1 ) [16:38:42] CMySQLHandler::FetchRow() - Return: -1 [16:38:42] >> mysql_free_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Kills); - Escaped 5 characters to Kills. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:42] >> mysql_query( Connection handle: 1 ) [16:38:42] CMySQLHandler::Query(SELECT `Kills` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:42] >> mysql_store_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::StoreResult() - Result was stored. [16:38:42] >> mysql_fetch_int( Connection handle: 1 ) [16:38:42] CMySQLHandler::FetchRow() - Return: -1 [16:38:42] >> mysql_free_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Tode); - Escaped 4 characters to Tode. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:42] >> mysql_query( Connection handle: 1 ) [16:38:42] CMySQLHandler::Query(SELECT `Tode` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:42] >> mysql_store_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::StoreResult() - Result was stored. [16:38:42] >> mysql_fetch_int( Connection handle: 1 ) [16:38:42] CMySQLHandler::FetchRow() - Return: -1 [16:38:42] >> mysql_free_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Health); - Escaped 6 characters to Health. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:42] >> mysql_query( Connection handle: 1 ) [16:38:42] CMySQLHandler::Query(SELECT `Health` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:42] >> mysql_store_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::StoreResult() - Result was stored. [16:38:42] >> mysql_fetch_float( Connection handle: 1 ) [16:38:42] CMySQLHandler::FetchRow() - Return: 0 [16:38:42] >> mysql_free_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Admin); - Escaped 5 characters to Admin. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:42] >> mysql_query( Connection handle: 1 ) [16:38:42] CMySQLHandler::Query(SELECT `Admin` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:42] >> mysql_store_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::StoreResult() - Result was stored. [16:38:42] >> mysql_fetch_int( Connection handle: 1 ) [16:38:42] CMySQLHandler::FetchRow() - Return: 4 [16:38:42] >> mysql_free_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fraktion); - Escaped 8 characters to Fraktion. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:42] >> mysql_query( Connection handle: 1 ) [16:38:42] CMySQLHandler::Query(SELECT `Fraktion` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:42] >> mysql_store_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::StoreResult() - Result was stored. [16:38:42] >> mysql_fetch_int( Connection handle: 1 ) [16:38:42] CMySQLHandler::FetchRow() - Return: 1 [16:38:42] >> mysql_free_result( Connection handle: 1 ) [16:38:42] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Rang); - Escaped 4 characters to Rang. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:42] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:42] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:42] >> mysql_query( Connection handle: 1 ) [16:38:43] CMySQLHandler::Query(SELECT `Rang` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:43] >> mysql_store_result( Connection handle: 1 ) [16:38:43] CMySQLHandler::StoreResult() - Result was stored. [16:38:43] >> mysql_fetch_int( Connection handle: 1 ) [16:38:43] CMySQLHandler::FetchRow() - Return: 6 [16:38:43] >> mysql_free_result( Connection handle: 1 ) [16:38:43] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:43] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:43] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:43] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:43] CMySQLHandler::EscapeString(Spawn); - Escaped 5 characters to Spawn. [16:38:43] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:43] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:43] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:43] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:43] >> mysql_query( Connection handle: 1 ) [16:38:43] CMySQLHandler::Query(SELECT `Spawn` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:43] >> mysql_store_result( Connection handle: 1 ) [16:38:43] CMySQLHandler::StoreResult() - Result was stored. [16:38:43] >> mysql_fetch_int( Connection handle: 1 ) [16:38:43] CMySQLHandler::FetchRow() - Return: 1 [16:38:43] >> mysql_free_result( Connection handle: 1 ) [16:38:43] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:44] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:44] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:44] >> mysql_query( Connection handle: 1 ) [16:38:44] CMySQLHandler::Query( SELECT * FROM `accounts` WHERE `NAME` = 'Fachkraftx3') - Successfully executed. [16:38:44] >> mysql_store_result( Connection handle: 1 ) [16:38:44] CMySQLHandler::StoreResult() - Result was stored. [16:38:44] >> mysql_num_rows( Connection handle: 1 ) [16:38:44] CMySQLHandler::NumRows() - Returned 1 row(s) [16:38:44] >> mysql_free_result( Connection handle: 1 ) [16:38:44] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:44] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:44] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:44] >> mysql_query( Connection handle: 1 ) [16:38:44] CMySQLHandler::Query( SELECT * FROM `accounts` WHERE `NAME` = 'Fachkraftx3') - Successfully executed. [16:38:44] >> mysql_store_result( Connection handle: 1 ) [16:38:44] CMySQLHandler::StoreResult() - Result was stored. [16:38:44] >> mysql_num_rows( Connection handle: 1 ) [16:38:44] CMySQLHandler::NumRows() - Returned 1 row(s) [16:38:44] >> mysql_free_result( Connection handle: 1 ) [16:38:44] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `passwort` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_row_format( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: patriots123 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Level); - Escaped 5 characters to Level. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Level` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_int( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: -1 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Geld); - Escaped 4 characters to Geld. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Geld` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_int( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: -1 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Kills); - Escaped 5 characters to Kills. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Kills` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_int( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: -1 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Tode); - Escaped 4 characters to Tode. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Tode` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_int( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: -1 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Health); - Escaped 6 characters to Health. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Health` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_float( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: 0 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Admin); - Escaped 5 characters to Admin. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Admin` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_int( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: 4 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fraktion); - Escaped 8 characters to Fraktion. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Fraktion` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_int( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: 1 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Rang); - Escaped 4 characters to Rang. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Rang` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_int( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: 6 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Spawn); - Escaped 5 characters to Spawn. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:38:48] >> mysql_real_escape_string( Connection handle: 1 ) [16:38:48] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:38:48] >> mysql_query( Connection handle: 1 ) [16:38:48] CMySQLHandler::Query(SELECT `Spawn` FROM `accounts` WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:38:48] >> mysql_store_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::StoreResult() - Result was stored. [16:38:48] >> mysql_fetch_int( Connection handle: 1 ) [16:38:48] CMySQLHandler::FetchRow() - Return: 1 [16:38:48] >> mysql_free_result( Connection handle: 1 ) [16:38:48] CMySQLHandler::FreeResult() - Result was successfully free'd. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Level); - Escaped 5 characters to Level. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Level` = '-1' WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Geld); - Escaped 4 characters to Geld. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Geld` = '-1' WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Kills); - Escaped 5 characters to Kills. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Kills` = '-1' WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Tode); - Escaped 4 characters to Tode. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Tode` = '-1' WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Health); - Escaped 6 characters to Health. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Health` = '0.000000' WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Admin); - Escaped 5 characters to Admin. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Admin` = '4' WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fraktion); - Escaped 8 characters to Fraktion. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Fraktion` = '1' WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Rang); - Escaped 4 characters to Rang. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Rang` = '6' WHERE `Name` = 'Fachkraftx3') - Successfully executed. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(accounts); - Escaped 8 characters to accounts. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Spawn); - Escaped 5 characters to Spawn. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Name); - Escaped 4 characters to Name. [16:39:06] >> mysql_real_escape_string( Connection handle: 1 ) [16:39:06] CMySQLHandler::EscapeString(Fachkraftx3); - Escaped 11 characters to Fachkraftx3. [16:39:06] >> mysql_query( Connection handle: 1 ) [16:39:06] CMySQLHandler::Query(UPDATE `accounts` SET `Spawn` = '1' WHERE `Name` = 'Fachkraftx3') - Successfully executed.
-
Hö :o ? Das musst du mir jetz erklären
Jeffry: -
Den Runtime Error hab ich selber bemerkt. Das war nur eine spielerei.
Hat aufjedenfall funktioniert. Darf ich eig im selben Thema noch eine andere Frage stellen ?
Weil wenn ja bräucht ich mal eure Hilfe.Denn wenn ich den Spieler Speicher.
Hier der Stock:
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
mysql_SetInt("accounts", "Level", SpielerInfo[playerid][pLevel], "Name", SpielerInfo[playerid][pName]);
mysql_SetInt("accounts", "Geld", SpielerInfo[playerid][pGeld], "Name", SpielerInfo[playerid][pName]);
mysql_SetInt("accounts", "Kills", SpielerInfo[playerid][pKills], "Name", SpielerInfo[playerid][pName]);
mysql_SetInt("accounts", "Tode", SpielerInfo[playerid][pTode], "Name", SpielerInfo[playerid][pName]);
mysql_SetFloat("accounts", "Health", SpielerInfo[playerid][pHealth], "Name", SpielerInfo[playerid][pName]);
mysql_SetInt("accounts", "Admin", SpielerInfo[playerid][pAdmin], "Name", SpielerInfo[playerid][pName]);
mysql_SetInt("accounts", "Fraktion", SpielerInfo[playerid][pFrak], "Name", SpielerInfo[playerid][pName]);
mysql_SetInt("accounts", "Rang", SpielerInfo[playerid][pRang], "Name", SpielerInfo[playerid][pName]);
mysql_SetInt("accounts", "Spawn", SpielerInfo[playerid][pSpawn], "Name", SpielerInfo[playerid][pName]);
}
}Dann Speichert er bei Geld : -1 bei Tode: -1 bei Kills: -1 und Health bleibt ganz 0.
Wie kann ich also nun das Geld das er hat richtig Speichern und das Leben ?
Danke schonma
Achja und wie kann ich das Geld und Leben wieder abrufen. Das hab ich ja eig. mit LoadPlayer.
GetPlayerName(playerid, SpielerInfo[playerid][pName], MAX_PLAYER_NAME);
SpielerInfo[playerid][pLevel] = mysql_GetInt("accounts", "Level", "Name", SpielerInfo[playerid][pName]);
SpielerInfo[playerid][pGeld] = mysql_GetInt("accounts", "Geld", "Name", SpielerInfo[playerid][pName]);
SpielerInfo[playerid][pKills] = mysql_GetInt("accounts", "Kills", "Name", SpielerInfo[playerid][pName]);
SpielerInfo[playerid][pTode] = mysql_GetInt("accounts", "Tode", "Name", SpielerInfo[playerid][pName]);
SpielerInfo[playerid][pHealth] = mysql_GetFloat("accounts","Health","Name", SpielerInfo[playerid][pName]);
SpielerInfo[playerid][pAdmin] = mysql_GetInt("accounts", "Admin", "Name", SpielerInfo[playerid][pName]);
SpielerInfo[playerid][pFrak] = mysql_GetInt("accounts", "Fraktion", "Name", SpielerInfo[playerid][pName]);
SpielerInfo[playerid][pRang] = mysql_GetInt("accounts", "Rang", "Name", SpielerInfo[playerid][pName]);
SpielerInfo[playerid][pSpawn] = mysql_GetInt("accounts", "Spawn", "Name", SpielerInfo[playerid][pName]); -
@[NGD]Manne:
danke aber was hab ich falsch gemacht ^^? -
#define WEISS 0xFFFFFFFF
#define BLAU 0x0A00FFFF -
Hey wenn ich bei makeleader die Fraktions ID angebe zeigt er mir in der Nachricht nicht den Fraktionsnamen an.
Fraktions Enum:
enum FrakDaten
{
frakname[128],
Float:fx,
Float:fy,
Float:fz,
Float:fr,
frakint,
frakworld,
frakcolor}
new FrakInfo[][FrakDaten] = {
{"Zivilist", 0.0, 0.0, 0.0, 0.0, 0,0,WEISS},
{"LSPD", 2331.1563, -1388.4844, 26.2266, 0.0, 0, 0, BLAU}
};Makeleader befehl:
CMD:makeleader(playerid, params[])
{
if(SpielerInfo[playerid][pAdmin] < 4) return SCM(playerid, ROT,"{CACA00}[INFO]:{FFFFFF} Dein Adminrang reicht nicht aus.");
new pID, fID;
if(sscanf(params,"ui", pID, fID)) return SCM(playerid, ROT,"{CACA00}[INFO]:{FFFFFF} /makeleader <Name> <Fraktion>.");
if(fID >= sizeof(FrakInfo)) return SCM(playerid, ROT,"{CACA00}[INFO]:{FFFFFF} Diese Fraktion existiert nicht.");
SpielerInfo[pID][pFrak] = fID;
SpielerInfo[pID][pRang] = 6;
new string[128], str[128];
format(string, sizeof(string), "[INFO]: %s hat dich zum Leader der Fraktion %s gemacht.", PlayerName(playerid), fID);
format(str, sizeof(str), "[INFO]: Du hast %s zum Leader der Fraktion %s gemacht.", PlayerName(pID), fID);
SendClientMessage(pID, HELLBLAU, string);
SendClientMessage(playerid, HELLBLAU ,str);
SavePlayer(pID);return 1;
}So und wenn ich noch n Spawnchange machen will möchte ich auch , dass er an den angegebenen Koordinaten spawnt.
Allerdings zeigt mir die Konsole folgendes:Code[debug] Run time error 6: "Invalid Instruction" Unknown Opcode 0x0 at adress 0x00000004 AMX backtrace: #0 00000004 in Public OnPlayerSpawn <> from testeins.amx Fachkraftx3 died 255
So nun der Code für OnPlayerSpawn
public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid,1000000);
new fID;
fID = SpielerInfo[playerid][pFrak];
if(SpielerInfo[playerid][pSpawn]==1)
{
if(!isFraktion(playerid, 0))
{
SetPlayerPos(playerid, FrakInfo[fID][fx], FrakInfo[fID][fy], FrakInfo[fID][fz]);
SetPlayerFacingAngle(playerid, FrakInfo[fID][fr]);
SetPlayerInterior(playerid, FrakInfo[fID][frakint]);
SetPlayerVirtualWorld(playerid, FrakInfo[fID][frakworld]);
SetPlayerColor(playerid, FrakInfo[fID][frakcolor]);
SendClientMessage(playerid, ROT, "Fraktionstest");}
}
return 1;
}Spawnchange Befehl:
CMD:spawnchange(playerid, params[])
{
if(isFraktion(playerid, 0)) return SCM(playerid,GRAU,"{CACA00}[INFO]:{FFFFFF} Du bist in keiner Fraktion.");
if(SpielerInfo[playerid][pSpawn]==0)
{
SpielerInfo[playerid][pSpawn]=1;
}
if(SpielerInfo[playerid][pSpawn]==1)
{
SpielerInfo[playerid][pSpawn]=0;
}
new str[128];
format(str,sizeof(str),"{CACA00}[INFO]:{FFFFFF} Du hast deinen Spawn geändert.");
SendClientMessage(playerid,GRAU, str);
SavePlayer(playerid);return 1;
}
Hoffentlich könnt ihr mir helfen. -
braowl:
Bei GTA ist es so wenn deine Waffe den Munitionsstand 0 erreicht verschwindet die Waffe. Deswegen kannst du deiner Waffe keine 0 geben.