Guten Morgen,
Ich habe 3 Errors:
C:\Users\Julian\Desktop\Script1.pwn(15) : warning 217: loose indentationC:\Users\Julian\Desktop\Script1.pwn(21) : error 017: undefined symbol "cmdext"C:\Users\Julian\Desktop\Script1.pwn(29) : error 017: undefined symbol "cmdtxt"C:\Users\Julian\Desktop\Script1.pwn(38) : error 017: undefined symbol "cmdext"C:\Users\Julian\Desktop\Script1.pwn(41) : warning 217: loose indentationC:\Users\Julian\Desktop\Script1.pwn(44) : warning 209: function "OnPlayerCommandText" should return a valuePawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Und komme nicht weiter daher frage ich hier. Hier ist mein Pawn Code
[hide]// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
new score;
public OnPlayerConnect(playerid)
{
new Text:homepage;
homepage = TextDrawCreate(5.0, 431.0, "~b~http://bcl-rl.square7.ch");
TextDrawSetOutline(homepage,1);
TextDrawShowForPlayer(playerid, homepage);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdext,"/kill", cmdext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0.0);
GameTextForPlayer(playerid, "~r~ Du hast Selbstmord begangen",2000,3);
return 1;
}
{
if(strcmp("/buy-score", cmdtxt, true, 10) == 0)
{
SetPlayerScore(playerid, score);
GameTextForPlayer(playerid, "~b~ Du bist nun ein Level aufgestiegen!",2000,3);
GivePlayerMoney(playerid, -50000);
return 1;
}
}
{
if(strcmp("/score-help", cmdext, true, 10) == 0)
{
GameTextForPlayer(playerid, "~b~ Gebe /buy-score [DEINE-ID] [DEIN-NÄCHSTES-LEVEL]",2000,3);
return 1;
}
}}[/hide]
Ich hoffe ihr könnt mir da weiterhelfen!
Mfg Julian