17.02.2012, 03:12
Hello reader,
If you read any post I did before you already know I am new to pawn, but I want to learn! Now I was trying to create a "PM" system in game so that a player can type "/pm [ID]" and that it will send a message to another player. Now I would like not to get all fixed codes posted since I really want to script something myself, but I just want to know how to define "senderid" because I keep getting these errors:
I know I can fix 3 of the 4 errors/warnings but I first need to know how to define "senderid".
This is the code I made ( Yes, I started using ZCMD after some people told me it was easier/better. ):
I hope someone can help me out with this, I'd really appreciate it!
Best regards,
Jesse
If you read any post I did before you already know I am new to pawn, but I want to learn! Now I was trying to create a "PM" system in game so that a player can type "/pm [ID]" and that it will send a message to another player. Now I would like not to get all fixed codes posted since I really want to script something myself, but I just want to know how to define "senderid" because I keep getting these errors:
Код:
C:\Users\Administrator\Desktop\samp03dsvr_R2_win32\gamemodes\test2.pwn(330) : error 035: argument type mismatch (argument 1) C:\Users\Administrator\Desktop\samp03dsvr_R2_win32\gamemodes\test2.pwn(330) : error 035: argument type mismatch (argument 1) C:\Users\Administrator\Desktop\samp03dsvr_R2_win32\gamemodes\test2.pwn(331) : error 017: undefined symbol "senderid" C:\Users\Administrator\Desktop\samp03dsvr_R2_win32\gamemodes\test2.pwn(329) : warning 203: symbol is never used: "pmontvang" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
This is the code I made ( Yes, I started using ZCMD after some people told me it was easier/better. ):
pawn Код:
CMD:pm(playerid, params[])
{
new pmverstuur[128];
format(pmverstuur, sizeof(pmverstuur), "(( PM to: [ %d ]: %s ))", playerid, params);
SendClientMessage(playerid, KLEUR_PM, pmverstuur);
new pmontvang;
format(pmontvang, sizeof(pmontvang), "(( PM from: [ %d }: %s ))", senderid, params);
SendPlayerMessageToPlayer(playerid, senderid, pmontvang);
return 1;
}
Best regards,
Jesse