hallo wollte mal fragen ob mann etwas scripten wenn ich z.b /showperso [ID] mache kann er sehen im Chat
Personalausweis
Name: [Nickname]
Level: [LEVEL]
Job: [Jobname]
Handynummer [nummer]
? kann mir dabei villeicht jemand helfen habe davon garkeine anung ?=
Edit]
allso ich habe den script zwar gefunden weiss aber nicht wo der rein muss kann mir da jemmand helfen ?
if(strcmp(cmd,"/showperso",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pPerso] == 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /showperso [Spieler_ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s hat dir den Personal-Ausweis gezeigt.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Du hast %s deinen Personal-Ausweis gezeigt .", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s zeigt %s den Personal-Ausweis.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new age = PlayerInfo[playerid][pAge];
new pnumber = PlayerInfo[playerid][pPnumber];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new atext[20];
if(PlayerInfo[playerid][pSex] == 1) { atext = "Männlich"; }
else if(PlayerInfo[playerid][pSex] == 2) { atext = "Weiblich"; }
new otext[20];
if(PlayerInfo[playerid][pOrigin] == 1) { otext = "USA"; }
else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "Europe"; }
else if(PlayerInfo[playerid][pOrigin] == 3) { otext = "Asia"; }
new jtext[20];
if(PlayerInfo[playerid][pJob] == 1) { jtext = "Detektiv"; }
else if(PlayerInfo[playerid][pJob] == 2) { jtext = "Anwalt"; }
else if(PlayerInfo[playerid][pJob] == 3) { jtext = "Hure"; }
else if(PlayerInfo[playerid][pJob] == 4) { jtext = "Drogendealer"; }
else if(PlayerInfo[playerid][pJob] == 5) { jtext = "Autodieb"; }
else if(PlayerInfo[playerid][pJob] == 6) { jtext = "News Reporter"; }
else if(PlayerInfo[playerid][pJob] == 8) { jtext = "Bodyguard"; }
else if(PlayerInfo[playerid][pJob] == 9) { jtext = "Waffenhändler"; }
else if(PlayerInfo[playerid][pJob] == 10) { jtext = "Autohändler"; }
else if(PlayerInfo[playerid][pJob] == 12) { jtext = "Boxer"; }
else if(PlayerInfo[playerid][pJob] == 14) { jtext = "Busfahrer"; }
else if(PlayerInfo[playerid][pJob] == 15) { jtext = "Zeitungsjunge"; }
else { jtext = "None"; }
format(string, sizeof(string), "|__________Ausweis__________|");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
format(string, sizeof(string), "Name: %s", name);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "Alter: %d", age);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "Geschlecht: %s", atext);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "Herkunft: %s", otext);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "Beruf: %s", jtext);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "Handy: %d", pnumber);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "|___________________________|");
SendClientMessage(giveplayerid, COLOR_GREEN, string);
}//prox
else
{
SendClientMessage(playerid, COLOR_GREY, " Der Spieler ist nicht in deiner Nähe!");
return 1;
}
}//invalid id
}//connectet
else
{
SendClientMessage(playerid, COLOR_GREY, " Der Spieler ist Offline!");
return 1;
}
}
}
Wenn ich das Unter /showlicenses Mache kommen die fehler
C:\Users\Marc\Desktop\FC-RP2.pwn(2620) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2621) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2624) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2625) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2626) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2637) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2663) : error 017: undefined symbol "PlayerGiveMoney"
C:\Users\Marc\Desktop\FC-RP2.pwn(2692) : error 017: undefined symbol "PlayerGiveMoney"
C:\Users\Marc\Desktop\FC-RP2.pwn(2709) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2751) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2775) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2807) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(2830) : error 004: function "SendUserMessage" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3006) : error 017: undefined symbol "PlayerGetMoney"
C:\Users\Marc\Desktop\FC-RP2.pwn(3081) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3085) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3098) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3102) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3106) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3110) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3114) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3118) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3122) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3126) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3130) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marc\Desktop\FC-RP2.pwn(3134) : error 004: function "PlayerToPoint" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Alles anzeigen