moin,
ich hab heute mir ein dynamisches payday script gemacht per pawno aber das problem ist das ich nicht weis wo
die fehler her kommen , würde mich sehr freuen wer mein script einfach mal kurz korregieren könnte :
compiler errors:
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(236) : error 001: expected token: ";", but found "-identifier-"
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(238) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(238) : error 022: must be lvalue (non-constant)
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(239 -- 240) : error 001: expected token: ",", but found "-identifier-"
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : error 001: expected token: ",", but found "-string-"
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : error 001: expected token: ";", but found ")"
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : fatal error 107: too many error messages on one line
Das Script:
#include <a_samp>
#include <ocmd>
#include <sscanf2>
//defining some colors:
#define COLOR_RED 0xB90000FF
#define COLOR_GREEN 0x00C700FF
#define COLOR_GREY 0x6E6E6EFF
#define COLOR_WHITE 0xFAFAFAFF
//defining some dailogs:
#define DIALOG_ANTRAG 1
//defining payday timers
forward PayDay(playerid);
//defining some Enums:
enum pInfo
{
pmarried,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
main()
{
print("hi");
}
public OnGameModeInit()
{
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(6, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
SetTimer("PayDay",216000,true);
SendClientMessage(playerid,COLOR_WHITE,"Willkommen auf dem test-Server von mir!");
SendClientMessage(playerid,COLOR_WHITE,"mit /help kannst du den Help Guide aktivieren!");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
public PayDay(playerid)
{
new string[128];
new married = 2000;
SendClientMessage(playerid,COLOR_WHITE,"((============((PAYDAY))============))");
SendClientMessage(playerid,COLOR_WHITE,"(( Lohn : 15000 ))");
format(string,sizeof(string),"%d",married)
SendClientMessage(playerid,COLOR_WHITE,string);
GivePlayerMoney(playerid,15000);
SetPlayerScore(playerid,++);
format(string,sizeof(string),"Dein Level ist Nun : %d",GetPlayerScore(playerid)
SendClientMessage(playerid,COLOR_WHITE,string);
SendClientMessage(playerid,COLOR_WHITE"((============((PayDayEnde))=========))");
return 1;
}
stock:married(playerid)
{
if(PlayerInfo[pInfo][pmarried] == 1)
{
SendClientMessage(playerid,COLOR_WHITE,"((Heirats-Steuer : 10000))");
GivePlayerMoney(playerid,10000);
return 1;
}
else
if(PlayerInfo[pInfo][pmarried == 0)
{
SendClientMessage(playerid,COLOR_WHITE,"((Heirats-Steuer : -))");
return 0;
}
return 1;
}
//bin um jede hilfe sehr dankbar:)
mfg fishtime9
es sind nur noch 6errors und zwar hier vom compiler :
[ C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(236) : error 001: expected token: ";", but found "-identifier-"
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(240) : error 001: expected token: ";", but found "-identifier-"
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : error 001: expected token: ",", but found "-string-"
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : error 001: expected token: ";", but found ")"
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Fishtime9\Desktop\test - server(pawno)(samp)\gamemodes\grandlarc.pwn(241) : fatal error 107: too many error messages on one line