SA-MP Forums Archive
[SOLVED] dudb - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] dudb (/showthread.php?tid=116715)



[SOLVED] dudb - KnooL - 29.12.2009

dUserSetINT(PlayerName(id)).("BannedBy",PlayerName (playerid));

doesn't work:

[error] C:\server\gamemodes\beta.pwn(301) : error 035: argument type mismatch (argument 3)

same with:

dUserSetINT(PlayerName(id)).("Banned",reason);


Re: dudb - BMUK - 29.12.2009

dUserSetINT(PlayerName(id)).("BannedBy",PlayerName(playerid)) ;

Your trying to set a string as an integer

Try: dUserSet(PlayerName(id)).("BannedBy",PlayerName(pl ayerid));



Re: dudb - KnooL - 30.12.2009

thank you, that worked out