GTAvision.com - Forum - Grand Theft Auto News, Downloads, Community and more...

Position: Grand Theft Auto: San Andreas » Multiplayer » Problem beim script » Druckansicht
Cwapsy, 10.10.2012, 20:39
Script:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
#include <a_samp>

main()
{
print("\n----------------------------------");
print(" Cwapsy Reallife");
print("----------------------------------\n");
}


public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Cwapsy Selfmade");
AddPlayerClass(1,2179.1704,1450.4625,10.8203,212.8379,0,0,0,0,0,0);
AddPlayerClass(1,2179.1704,1450.4625,10.8203,212.8379,0,0,0,0,0,0);
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,2179.1704,1450.4625,10.8203);
SetPlayerFacingAngle(playerid,212.8379);
SetPlayerCameraPos(2179.1704,1450.4625,10.8203);
SetPlayerCameraLookAt(playerid,2179.1704,1450.4625,10.8203);

return 1;


}

public OnPlayerConnect(playerid
{
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;
}


Fehlermeldung

C:\Users\Stereoclip\Desktop\sa-mp server\gamemodes\CR.pwn(29) : warning 213: tag mismatch
C:\Users\Stereoclip\Desktop\sa-mp server\gamemodes\CR.pwn(29) : warning 202: number of arguments
does not match definition
C:\Users\Stereoclip\Desktop\sa-mp server\gamemodes\CR.pwn(3 : error 001: expected token: ")", but
found "{"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Wo könnte es liegen '
Danke im Vorraus

//Edit
Code-Tag hinzugefügt.

MfG
Rafioso
Eagle, 10.10.2012, 21:13
ZitatZitat:
public OnPlayerConnect(playerid

Klammer zu vergessen?
Cwapsy, 10.10.2012, 21:36
Wie Meinste ?
Rafioso, 10.10.2012, 21:43
Wenn du ausgibst, musst du auch einstecken ;)

Oder...

Wenn du mit der Klammer öffnest ---> (
musst du die auch wieder mit einer Klammer schließen ---> )

So:

Code:
1
public OnPlayerConnect(playerid)
Cwapsy, 10.10.2012, 22:10
Jez hab ich nurnoch 2 warnings
is das egal ?
Rafioso, 10.10.2012, 22:24
Kommt immer drauf an welche ;)
Cwapsy, 10.10.2012, 22:46
Ich mache gerade ein selfmade hab aber einige probs könntest du mir via skype helfen ?
Rafioso, 10.10.2012, 23:00
Nein leider nicht.
Cwapsy, 10.10.2012, 23:42
Hab aber nochn Problem
Fehler:
C:\Users\Stereoclip\Desktop\sa-mp server\gamemodes\Test.pwn(42) : error 035: argument type mismatch
(argument 2)
Problem:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,grün,"Wilkommen auf meinem Server");

return 1;
}
Rafioso, 11.10.2012, 00:41
Das wir wohl an "grün" liegen. Keine Umlaute bitte.
Steffen, 01.11.2012, 11:21
Hallo
Hast du die Farbe grün Definiert ?
Wenn du das in Grün haben willst mach es doch so .

SendClientMessage(playerid,0x37FF00FF,"Herzlich Wilkommen auf mein Server");

Also ich bin selber noch am Lernen xD
Könnten ja zusammen Lernen jeder erzählt was er weiss.
GTAvision.com :: Forumregeln :: FAQ :: Impressum :: Kontakt :: RDRvision.com :: LANOIREvision.com :: MaxPayneVision.com
NetVisionWork.NET
.: © 2006-2014 by GTAvision.com :.

Rockstar GamesTake-Two Interactive Deutschland

Free Grand Theft Auto Downloads