Hallo Com,
bekomme 2 Errors könnt ihr mir mal helfen hier der Code:
Der Error Meldung:
C:\Users\***\Desktop\GTA Reallife\gamemodes\rs.pwn(277) : error 001: expected token: ";", but found ":"
C:\Users\****\Desktop\GTA Reallife\gamemodes\rs.pwn(277) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Code bei Zeile 227:
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
:
if(dialogid == DIALOG_STADTHALLE)
{
if(response == 1)
{
switch(listitem)
{
case 0: //1. möglichkeit (Perso)
{
return 1;
}
case 1: //2. Möglichkeit (Job)
{
ShowPlayerDialog(playerid,DIALOG_JOB,DIALOG_STYLE_LIST,"Jobs","Müllman\nBusfahrer\nPilot","Wählen","Abbrechen");
}
}
}
if(response == 0)
{
return 1:
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 16) //enter
{
if(IsPlayerInRangeOfPoint(playerid,2,362.6940,173.5556,1008.3828))
{
//Stadthalle Punkt
ShowPlayerDialog(playerid,DIALOG_STADTHALLE,DIALOG_STYLE_LIST,"Stadthalle","Personalausweis beantragen\nJob wählen","Wählen","Abbrechen");
}
}
return 1;
}
LG