Hallo ich hatte eben noch 4 Errors ich habe 1 Error behoben aber als ich dann inputtext geschrieben habe stat imputtext
kamen auf einmal 7 Erros hier ist mal mein ganzes script ich hoffe ihr könnt mir helfen.
erstmal die Erros
PHP
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(55) : warning 202: number of arguments does not match definition
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(57) : warning 202: number of arguments does not match definition
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(269) : warning 217: loose indentation
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(271) : error 001: expected token: ")", but found ";"
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(271) : error 036: empty statement
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(273) : warning 217: loose indentation
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(278) : error 010: invalid function or declaration
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(281) : error 010: invalid function or declaration
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(284) : error 010: invalid function or declaration
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(293) : error 025: function heading differs from prototype
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(310) : error 010: invalid function or declaration
C:\Users\Morino\Desktop\wefwef\gamemodes\gmx.pwn(327) : warning 203: symbol is never used: "cdice"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Alles anzeigen
PHP
#include <a_samp>
#include <dini>
#define BLAU 0x0087FFFF
#define DIALOG_TUTORIAL 1
#define DIALOG_REGISTER 2
#define DIALOG_LOGIN 3
new bsnenter;
new bsnexit;
main()
{
print("\n----------------------------------");
print("New-World");
print("----------------------------------\n");
}
public OnGameModeInit()
{
UsePlayerPedAnims();
bsnexit=CreatePickup(1559,1,362.8415,-75.1395,1001.5078);
bsnenter=CreatePickup(1559,1,1199.2979,-918.1391,43.1230);
DisableInteriorEnterExits();
SetGameModeText("Blank Script");
AddPlayerClass(270,1698.1198,-1343.5894,17.4970,273.8918,0,0,0,0,0,0); // posision
AddPlayerClass(99,1698.1198,-1343.5894,17.4970,273.8918,25,200,0,0,0,0); // posision
AddStaticVehicle(462,1702.1870,-1352.3983,17.0925,270.3800,14,14); // auto1
AddStaticVehicle(462,1702.2068,-1353.6411,17.0655,265.6023,1,3); // auto2
AddStaticVehicle(462,1701.8647,-1366.5989,17.0483,269.8038,13,13); // car3
AddStaticVehicle(462,1701.9149,-1367.9200,17.0485,274.2323,10,10); // auto 4
AddStaticVehicle(462,1701.9333,-1368.9130,17.0490,268.0963,13,13); // 5
AddStaticVehicle(462,1701.9764,-1369.9701,17.0469,266.7220,1,3); // auto 6
AddStaticVehicle(462,1702.6327,-1333.9556,17.1264,269.9677,13,13); // fiagiio 1
AddStaticVehicle(462,1702.5868,-1332.9647,17.1037,267.6681,14,14); // fiagiio 2
AddStaticVehicle(462,1702.1860,-1319.7941,17.0856,273.6871,1,2); // fiagiio 3
AddStaticVehicle(462,1702.1699,-1318.8522,17.0940,267.7112,2,1); // fiagiio 4
AddStaticVehicle(462,1702.1735,-1317.8872,17.1101,270.9910,1,3); // fiagiio 5
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,270,1698.1198,-1343.5894,17);
SetPlayerFacingAngle (playerid,273.8918);
SetPlayerCameraPos (playerid,270,1697.5222,-1343.6318,17);
SetPlayerCameraLookAt(playerid,270,1698.1198,-1343.5894,17);
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib bitte das gewünschte Passwort ein:","Register","Abbrechen");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"Tutorial","Willkommen auf New-World Life.\nWir wünschen dir viel spaß auf unserem Server.\nFalls du hilfe brauchst benutze /support ein Support wird sich dann um dich kümmern.","OK","Schließen");
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(cmdtext,"/help",true)==0)
{
}
if(strcmp(cmdtext,"/kill",true)==0)
{
SetPlayerHealth(playerid,0);
return 1;
}
if(strcmp(cmdtext,"/restart",true)==0)
{
SendRconCommand("gmx");
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)
{
if(pickupid==bsnenter)
{
SetPlayerPos(playerid,365.2890,-73.9478,1001.5078);
SetPlayerInterior(playerid,10);
GameTextForPlayer(playerid,"~r~Du ~r~hast ~r~den ~r~BSN ~r~betreten.",3000,3);
}
if(pickupid==bsnexit)
{
SetPlayerPos(playerid,1199.5841,-920.8875,43.1068);
SetPlayerFacingAngle(playerid,189.3504);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
}
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[])
{
if(dialogid==DIALOG_REGISTER)
{
if(response==0)
{
SendClientMessage(playerid,BLAU,"Du hast den Vorgang abgebrochen.");
Kick(playerid);
return 1;
}
}
if(response==1)
{
if(!strlen(inputtext);
}
SendClientMessage(playerid,BLAU,"Das Passwort wahr nicht lang genung");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib bitte das gewünschte Passwort ein:","Register","Abbrechen");
return 1;
}
else
{
Register(playerid,inputtext);
return 1;
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
}
stock Register(playerid,key[])
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
new IP[16];
GetPlayerIp(playerid, IP, sizeof(IP));
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
dini_Create(Spielerdatei);
dini_Set(Spielerdatei,"Passwort",key);
dini_Set(Spielerdatei,"IP Register",IP);
SendClientMessage(playerid,BLAU,"Erfolgreich registriert.");
SetPlayerScore(playerid,0);
SetPVarInt(playerid,"loggedin",1);
return 1;
}
stock GetPlayerTickCount(playerid) return GetTickCount() - y[playerid];
ocmd:cdice(playerid, params[])
{
new einsatz;
if(sscanf(params, "i", einsatz)) return SendClientMessage(playerid, COLOR_GREY, "Benutze: /cdice [Einsatz]");
if(!IsPlayerInRangeOfPoint(playerid, 5, 2187.9375,1676.8564,11.1101)) return SendClientMessage(playerid, COLOR_GREY, "Hier kannst du nicht Würfeln!");
if(einsatz >= 10001 || einsatz <= 999) return SendClientMessage(playerid, COLOR_GREY, "Der mindest Einsatz ist $1000 und der maximale Einsatz $10000");
new spieleraugen = random(6);
new computeraugen = random(6);
new string[128];
if(spieleraugen < computeraugen){format(string, sizeof(string), "Du verlierst mit einer %d gegen eine %d - Verlust: %d", spieleraugen, computeraugen, einsatz); SendClientMessage(playerid, COLOR_WHITE, string); GivePlayerMoney(playerid, -einsatz);}
if(spieleraugen > computeraugen){format(string, sizeof(string), "Du gewinnst mit einer %d gegen eine %d - Gewinn: %d", spieleraugen, computeraugen, einsatz); SendClientMessage(playerid, COLOR_WHITE, string); GivePlayerMoney(playerid, einsatz);}
if(spieleraugen == computeraugen){SendClientMessage(playerid, COLOR_WHITE, "Niemand gewinnt - es wurde ein Unentschieden gewürfelt!");}
return 1;
}
Alles anzeigen